moved mode selection to gui

This commit is contained in:
Rob Weber 2012-11-28 08:54:23 -06:00
parent c1784c0485
commit 18c85870ec
2 changed files with 10 additions and 6 deletions

View File

@ -1,7 +1,13 @@
import xbmcgui
import resources.lib.utils as utils
from resources.lib.backup import 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(mode != -1):
#run the profile backup
backup = XbmcBackup()
if(backup.isReady()):
backup.run()
backup.run(mode)

View File

@ -1,11 +1,9 @@
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<settings>
<category id="general" label="30011">
<setting id="addon_mode" type="enum" lvalues="30016|30017" default="0" label="30023" />
<setting id="remote_selection" type="enum" lvalues="30018|30019" default="0" label="30025"/>
<setting id="remote_path_2" type="text" label="30024" default="" visible="eq(-1,1)" />
<setting id="remote_path" type="folder" label="30020" visible="eq(-2,0)" />
<setting id="backup_name" type="text" label="30021" default="backup_date" visible="eq(-4,1)"/>
<setting id="backup_rotation" type="number" label="30026" default="0" />
<setting id="run_silent" type="bool" label="30022" default="false" />
</category>