From cff2ea86b728e29d6130371b9c2c6aced014c9b6 Mon Sep 17 00:00:00 2001 From: Rob Weber Date: Fri, 13 Jan 2017 11:28:48 -0600 Subject: [PATCH] fixes #90 --- scheduler.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/scheduler.py b/scheduler.py index 4b978b5..0b520e6 100644 --- a/scheduler.py +++ b/scheduler.py @@ -81,6 +81,8 @@ class BackupScheduler: del self.monitor def findNextRun(self,now): + progress_mode = int(utils.getSetting('progress_mode')) + #find the cron expression and get the next run time cron_exp = self.parseSchedule() @@ -89,8 +91,11 @@ class BackupScheduler: if(new_run_time != self.next_run): self.next_run = new_run_time - utils.showNotification(utils.getString(30081) + " " + datetime.datetime.fromtimestamp(self.next_run).strftime('%m-%d-%Y %H:%M')) utils.log("scheduler will run again on " + datetime.datetime.fromtimestamp(self.next_run).strftime('%m-%d-%Y %H:%M')) + + #only show when not in silent mode + if(progress_mode != 2): + utils.showNotification(utils.getString(30081) + " " + datetime.datetime.fromtimestamp(self.next_run).strftime('%m-%d-%Y %H:%M')) def settingsChanged(self): current_enabled = utils.getSetting("enable_scheduler")