summaryrefslogtreecommitdiffstats
path: root/draksnapshot-config
diff options
context:
space:
mode:
authorNicolas Lécureuil <neoclust@mageia.org>2020-06-02 14:10:45 +0200
committerNicolas Lécureuil <neoclust@mageia.org>2020-06-02 14:11:05 +0200
commit75012e54a7f7291431e3db699982626e5b3cdd72 (patch)
tree1448040b882d3b1ffc3965aa2a9a8980224bc0ed /draksnapshot-config
parentdfd91acf77964ca0532048d5d78d8e5ae89a0ecc (diff)
downloaddraksnapshot-75012e54a7f7291431e3db699982626e5b3cdd72.tar
draksnapshot-75012e54a7f7291431e3db699982626e5b3cdd72.tar.gz
draksnapshot-75012e54a7f7291431e3db699982626e5b3cdd72.tar.bz2
draksnapshot-75012e54a7f7291431e3db699982626e5b3cdd72.tar.xz
draksnapshot-75012e54a7f7291431e3db699982626e5b3cdd72.zip
Revert "Fix add of interval_titles ( fixes previous commit)"
Diffstat (limited to 'draksnapshot-config')
-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);