From 75012e54a7f7291431e3db699982626e5b3cdd72 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicolas=20L=C3=A9cureuil?= Date: Tue, 2 Jun 2020 14:10:45 +0200 Subject: Revert "Fix add of interval_titles ( fixes previous commit)" This reverts commit d4b68c2aa72b106d364f1203702e271efc2fd9b0. --- draksnapshot-config | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) mode change 100755 => 100644 draksnapshot-config (limited to 'draksnapshot-config') diff --git a/draksnapshot-config b/draksnapshot-config old mode 100755 new mode 100644 index 00d8b31..afa0598 --- 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); -- cgit v1.2.1