From 0b0d8dab3f0dcc9036dfe5dce6dd42962011a34a Mon Sep 17 00:00:00 2001 From: Rob Weber Date: Sun, 22 Apr 2012 15:58:39 -0500 Subject: [PATCH] finished restore code moved "mode" to the top of the settings screen --- changelog.txt | 8 +++++--- default.py | 2 +- resources/settings.xml | 2 +- 3 files changed, 7 insertions(+), 5 deletions(-) diff --git a/changelog.txt b/changelog.txt index bcf65ae..40e26ba 100644 --- a/changelog.txt +++ b/changelog.txt @@ -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 \ No newline at end of file +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. diff --git a/default.py b/default.py index 5203c41..690858b 100644 --- a/default.py +++ b/default.py @@ -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 diff --git a/resources/settings.xml b/resources/settings.xml index acc9813..353ac50 100644 --- a/resources/settings.xml +++ b/resources/settings.xml @@ -1,9 +1,9 @@ + -