From cb2bb8a2371f256e1e0588535a1cd686dcef64b1 Mon Sep 17 00:00:00 2001 From: Rob Weber Date: Fri, 23 Aug 2019 14:16:58 -0500 Subject: [PATCH] modify select display to show recursive value for included folders --- resources/lib/advanced_editor.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/resources/lib/advanced_editor.py b/resources/lib/advanced_editor.py index 3db01b4..eabcd26 100644 --- a/resources/lib/advanced_editor.py +++ b/resources/lib/advanced_editor.py @@ -119,15 +119,15 @@ class AdvancedBackupEditor: rootPath = backupSet['root'] utils.log(rootPath) while(optionSelected != -1): - options = [utils.getString(30120),utils.getString(30135),utils.getString(30121) + ": " + rootPath] + options = [xbmcgui.ListItem(utils.getString(30120),"Exclude a specific folder from this backup set"),xbmcgui.ListItem(utils.getString(30135),"Include a specific folder to this backup set"),xbmcgui.ListItem(rootPath,utils.getString(30121))] for aDir in backupSet['dirs']: if(aDir['type'] == 'exclude'): - options.append(utils.getString(30129) + ': ' + self._cleanPath(rootPath,aDir['path'])) + options.append(xbmcgui.ListItem(self._cleanPath(rootPath,aDir['path']),"%s: %s" % ("Type",utils.getString(30129)))) elif(aDir['type'] == 'include'): - options.append(utils.getString(30134) + ': ' + self._cleanPath(rootPath,aDir['path'])) + options.append(xbmcgui.ListItem(self._cleanPath(rootPath,aDir['path']),"%s: %s | %s: %s" % ("Type",utils.getString(30134),"Recursive",str(aDir['recurse'])))) - optionSelected = self.dialog.select(utils.getString(30122) + ' ' + name,options) + optionSelected = self.dialog.select(utils.getString(30122) + ' ' + name,options,useDetails=True) if(optionSelected == 0 or optionSelected == 1): #add a folder, will equal root if cancel is hit