finished restore code

moved "mode" to the top of the settings screen
This commit is contained in:
Rob Weber 2012-04-22 15:58:39 -05:00
parent f520d58c6b
commit 0b0d8dab3f
3 changed files with 7 additions and 5 deletions

View File

@ -1,9 +1,11 @@
[b]Version 0.0.2[/b]
First version, should backup directories as needed
[b]Version 0.0.3[/b]
Added progress bar and "silent" option for running on startup or as a script
Added progress bar and "silent" option for running on startup or as a script
[b]Version 0.0.4[/b]
Finished code for restore mode.

View File

@ -163,7 +163,7 @@ class XbmcBackup:
#update the progress bar
if(self.progressBar != None):
self.progressBar.update((float(self.filesTotal - self.filesLeft)/float(self.filesTotal)) * 100,message)
self.progressBar.update(int((float(self.filesTotal - self.filesLeft)/float(self.filesTotal)) * 100),message)
def checkCancel(self):
result = False

View File

@ -1,9 +1,9 @@
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<settings>
<category id="general" label="30011">
<setting id="addon_mode" type="enum" values="Backup|Restore" default="Backup" label="30023" />
<setting id="remote_path" type="folder" label="30020" />
<setting id="backup_name" type="text" label="30021" default="xbmc_backup"/>
<setting id="addon_mode" type="enum" values="Backup|Restore" default="Backup" label="30023" />
<setting id="run_silent" type="bool" label="30022" default="false" />
</category>
<category id="selection" label="30012">