summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--[-rwxr-xr-x]draksnapshot-config10
1 files changed, 2 insertions, 8 deletions
diff --git a/draksnapshot-config b/draksnapshot-config
index 00d8b31..afa0598 100755..100644
--- a/draksnapshot-config
+++ b/draksnapshot-config
@@ -105,14 +105,8 @@ my $_menubar = $::isEmbedded ? Gtk3::MenuBar->new($my_win->{rwindow}, @menu_item
#my $_menubar = create_factory_menu($my_win->{rwindow}, @menu_items);
######### menus end
-my %interval_titles = (
- 'hourly' => N("Hourly snapshots"),
- 'daily' => N("Daily snapshots"),
- 'weekly' => N("Weekly snapshots"),
- 'monthly' => N("Monthly snapshots"),
-);
-my (%entries, $where);
+my $where;
# if not configured, just default where will be mounted the discs by HAL:
if (!$backup_directory || $::testing) {
@@ -307,7 +301,7 @@ sub add {
sub save() {
save_keyword('retain', map {
- my $val = $entries{$_}->get_text;
+ my $val = $default_intervals{$_};
if_($val, join("\t", 'retain', $_, $val));
} @ordered_intervals);