mirror of
https://github.com/linuxmint/timeshift.git
synced 2024-08-16 20:10:39 +03:00
settings: Clear the initial snapshot size and file count when
all snapshots are deleted.
This commit is contained in:
parent
2383721c0d
commit
044b920a82
@ -3065,8 +3065,16 @@ public class Main : GLib.Object{
|
||||
config.set_string_member("count_hourly", count_hourly.to_string());
|
||||
config.set_string_member("count_boot", count_boot.to_string());
|
||||
|
||||
config.set_string_member("snapshot_size", first_snapshot_size.to_string());
|
||||
config.set_string_member("snapshot_count", first_snapshot_count.to_string());
|
||||
if (repo.has_snapshots())
|
||||
{
|
||||
config.set_string_member("snapshot_size", first_snapshot_size.to_string());
|
||||
config.set_string_member("snapshot_count", first_snapshot_count.to_string());
|
||||
}
|
||||
else
|
||||
{
|
||||
first_snapshot_size = 0;
|
||||
first_snapshot_count = 0;
|
||||
}
|
||||
|
||||
config.set_string_member("date_format", date_format);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user