added options for background progress bar. part of #36

This commit is contained in:
Rob Weber
2014-01-20 12:42:49 -06:00
parent 163124089b
commit 987d90de12
4 changed files with 23 additions and 10 deletions

View File

@ -46,13 +46,18 @@ class BackupScheduler:
now = time.time()
if(self.next_run <= now):
if(utils.getSetting('run_silent') == 'false'):
progress_mode = int(utils.getSetting('progress_mode'))
if(progress_mode != 2):
utils.showNotification(utils.getString(30053))
#run the job in backup mode, hiding the dialog box
backup = XbmcBackup()
if(backup.remoteConfigured()):
backup.run(XbmcBackup.Backup,True)
if(int(utils.getSetting('progress_mode')) in [0,1]):
backup.run(XbmcBackup.Backup,True)
else:
backup.run(XbmcBackup.Backup,False)
#check if this is a "one-off"
if(int(utils.getSetting("schedule_interval")) == 0):