mirror of
https://github.com/robweber/xbmcbackup.git
synced 2024-11-14 20:35:48 +01:00
finished restore code
moved "mode" to the top of the settings screen
This commit is contained in:
parent
f520d58c6b
commit
0b0d8dab3f
@ -1,9 +1,11 @@
|
|||||||
[b]Version 0.0.2[/b]
|
[b]Version 0.0.2[/b]
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
First version, should backup directories as needed
|
First version, should backup directories as needed
|
||||||
|
|
||||||
[b]Version 0.0.3[/b]
|
[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.
|
||||||
|
@ -163,7 +163,7 @@ class XbmcBackup:
|
|||||||
|
|
||||||
#update the progress bar
|
#update the progress bar
|
||||||
if(self.progressBar != None):
|
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):
|
def checkCancel(self):
|
||||||
result = False
|
result = False
|
||||||
|
@ -1,9 +1,9 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
|
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
|
||||||
<settings>
|
<settings>
|
||||||
<category id="general" label="30011">
|
<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="remote_path" type="folder" label="30020" />
|
||||||
<setting id="backup_name" type="text" label="30021" default="xbmc_backup"/>
|
<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" />
|
<setting id="run_silent" type="bool" label="30022" default="false" />
|
||||||
</category>
|
</category>
|
||||||
<category id="selection" label="30012">
|
<category id="selection" label="30012">
|
||||||
|
Loading…
Reference in New Issue
Block a user