settings: Clear the initial snapshot size and file count when

all snapshots are deleted.
This commit is contained in:
Michael Webster 2022-06-27 16:52:28 -04:00
parent 2383721c0d
commit 044b920a82

View File

@ -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);