From 2af3070528f7272fd2f99b758bd4d588337bdfd3 Mon Sep 17 00:00:00 2001 From: Rob Weber Date: Tue, 7 Nov 2017 15:10:21 -0600 Subject: [PATCH] allow user to turn on/off --- resources/language/English/strings.xml | 1 + resources/settings.xml | 3 ++- scheduler.py | 4 ++-- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/resources/language/English/strings.xml b/resources/language/English/strings.xml index 1ecd886..595d3be 100644 --- a/resources/language/English/strings.xml +++ b/resources/language/English/strings.xml @@ -100,4 +100,5 @@ is authorized error authorizing Visit https://console.developers.google.com/ + Run on startup if missed diff --git a/resources/settings.xml b/resources/settings.xml index 69ffe7f..58c1ca7 100644 --- a/resources/settings.xml +++ b/resources/settings.xml @@ -36,6 +36,7 @@ - + + diff --git a/scheduler.py b/scheduler.py index 276df34..b01b507 100644 --- a/scheduler.py +++ b/scheduler.py @@ -34,8 +34,8 @@ class BackupScheduler: fh.close() - #ADD A CHECK HERE FOR IF THE USER EVEN WANTS THIS - if(0 < nr <= time.time()): + #if we missed and the user wants to play catch-up + if(0 < nr <= time.time() and utils.getSetting('schedule_miss') == 'true'): utils.log("scheduled backup was missed, doing it now...") progress_mode = int(utils.getSetting('progress_mode'))