diff --git a/default.py b/default.py index 8676e8b..defbc17 100644 --- a/default.py +++ b/default.py @@ -1,7 +1,13 @@ +import xbmcgui +import resources.lib.utils as utils from resources.lib.backup import XbmcBackup -#run the profile backup -backup = XbmcBackup() +#figure out if this is a backup or a restore +mode = xbmcgui.Dialog().select(utils.getString(30023),[utils.getString(30016),utils.getString(30017)]) -if(backup.isReady()): - backup.run() +if(mode != -1): + #run the profile backup + backup = XbmcBackup() + + if(backup.isReady()): + backup.run(mode) diff --git a/resources/settings.xml b/resources/settings.xml index 0d78c58..3cc0f23 100644 --- a/resources/settings.xml +++ b/resources/settings.xml @@ -1,11 +1,9 @@ - -