From 7f42129606734bd6a94454700d33cfae81741d76 Mon Sep 17 00:00:00 2001 From: "robweberjr@gmail.com" Date: Tue, 18 Mar 2014 13:48:53 -0500 Subject: [PATCH] added home window properties --- resources/lib/backup.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/resources/lib/backup.py b/resources/lib/backup.py index 771c9c8..374ce49 100644 --- a/resources/lib/backup.py +++ b/resources/lib/backup.py @@ -90,6 +90,10 @@ class XbmcBackup: self.skip_advanced = True def run(self,mode=-1,progressOverride=False): + #set windows setting to true + window = xbmcgui.Window(10000) + window.setProperty(utils.__addon_id__ + ".running","true") + #append backup folder name progressBarTitle = utils.getString(30010) + " - " if(mode == self.Backup and self.remote_vfs.root_path != ''): @@ -323,6 +327,9 @@ class XbmcBackup: if(self.progressBar != None): self.progressBar.close() + #reset the window setting + window.setProperty(utils.__addon_id__ + ".running","") + def backupFiles(self,fileList,source,dest): utils.log("Writing files to: " + dest.root_path) utils.log("Source: " + source.root_path)