From 18c85870ece81e865853704a5d46e43e0155f8d0 Mon Sep 17 00:00:00 2001 From: Rob Weber Date: Wed, 28 Nov 2012 08:54:23 -0600 Subject: [PATCH] moved mode selection to gui --- default.py | 14 ++++++++++---- resources/settings.xml | 2 -- 2 files changed, 10 insertions(+), 6 deletions(-) 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 @@ - -