mirror of
https://github.com/robweber/xbmcbackup.git
synced 2024-12-22 14:05:23 +01:00
modify select display to show recursive value for included folders
This commit is contained in:
parent
eb765c974b
commit
cb2bb8a237
@ -119,15 +119,15 @@ class AdvancedBackupEditor:
|
|||||||
rootPath = backupSet['root']
|
rootPath = backupSet['root']
|
||||||
utils.log(rootPath)
|
utils.log(rootPath)
|
||||||
while(optionSelected != -1):
|
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']:
|
for aDir in backupSet['dirs']:
|
||||||
if(aDir['type'] == 'exclude'):
|
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'):
|
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):
|
if(optionSelected == 0 or optionSelected == 1):
|
||||||
#add a folder, will equal root if cancel is hit
|
#add a folder, will equal root if cancel is hit
|
||||||
|
Loading…
Reference in New Issue
Block a user