This commit is contained in:
Rob Weber
2013-12-05 14:26:35 -06:00
parent 25a9faed9a
commit d28596728b
5 changed files with 37 additions and 14 deletions

View File

@@ -20,13 +20,19 @@ if(mode != -1):
#run the profile backup
backup = XbmcBackup()
if(mode == backup.Restore):
#allow user to select the backup to restore from
restorePoints = backup.listBackups()
if(backup.remoteConfigured()):
selectedRestore = xbmcgui.Dialog().select(utils.getString(30010) + " - " + utils.getString(30021),restorePoints)
if(mode == backup.Restore):
#allow user to select the backup to restore from
restorePoints = backup.listBackups()
if(selectedRestore != -1):
backup.selectRestore(restorePoints[selectedRestore])
selectedRestore = xbmcgui.Dialog().select(utils.getString(30010) + " - " + utils.getString(30021),restorePoints)
if(selectedRestore != -1):
backup.selectRestore(restorePoints[selectedRestore])
backup.run(mode)
backup.run(mode)
else:
#can't go any further
xbmcgui.Dialog().ok(utils.getString(30010),utils.getString(30045))
utils.openSettings()