From 98a369db6fc6ddd475832faf979da0fe60eab70a Mon Sep 17 00:00:00 2001 From: Rob Weber Date: Fri, 8 May 2015 19:40:28 -0500 Subject: [PATCH] closes #71 --- changelog.txt | 1 + default.py | 8 ++++++-- resources/language/English/strings.xml | 1 + 3 files changed, 8 insertions(+), 2 deletions(-) diff --git a/changelog.txt b/changelog.txt index 920a7bd..34dea4e 100644 --- a/changelog.txt +++ b/changelog.txt @@ -2,6 +2,7 @@ Version 1.0.5 added google drive support make compression setting compatible with python 2.6 and above +added settings dialog option - thanks ed_davidson Version 1.0.4 diff --git a/default.py b/default.py index a682c8a..7a3f43d 100644 --- a/default.py +++ b/default.py @@ -29,14 +29,18 @@ if("mode" in params): #if mode wasn't passed in as arg, get from user if(mode == -1): #figure out if this is a backup or a restore from the user - mode = xbmcgui.Dialog().select(utils.getString(30010) + " - " + utils.getString(30023),[utils.getString(30016),utils.getString(30017)]) + mode = xbmcgui.Dialog().select(utils.getString(30010) + " - " + utils.getString(30023),[utils.getString(30016),utils.getString(30017),utils.getString(30099)]) #check if program should be run if(mode != -1): #run the profile backup backup = XbmcBackup() - if(backup.remoteConfigured()): + if(mode == 2): + #open the settings dialog + utils.openSettings() + + elif(backup.remoteConfigured()): if(mode == backup.Restore): #get list of valid restore points diff --git a/resources/language/English/strings.xml b/resources/language/English/strings.xml index 211588a..8b925c4 100644 --- a/resources/language/English/strings.xml +++ b/resources/language/English/strings.xml @@ -90,4 +90,5 @@ Old Zip Archive could not be deleted This needs to happen before a backup can run Google Drive + Open Settings