This commit is contained in:
robweber 2021-02-21 21:25:56 -06:00
parent 11c644cb15
commit 46d7d22523

View File

@ -94,7 +94,7 @@ class AdvancedBackupEditor:
if(name is not None): if(name is not None):
# give a choice to start in home or enter a root path # give a choice to start in home or enter a root path
enterHome = self.dialog.yesno(utils.getString(30111), line1=utils.getString(30112) + " - " + utils.getString(30114), line2=utils.getString(30113) + " - " + utils.getString(30115), nolabel=utils.getString(30112), yeslabel=utils.getString(30113)) enterHome = self.dialog.yesno(utils.getString(30111), message=utils.getString(30112) + " - " + utils.getString(30114) + "\n" + utils.getString(30113) + " - " + utils.getString(30115), nolabel=utils.getString(30112), yeslabel=utils.getString(30113))
rootFolder = 'special://home' rootFolder = 'special://home'
if(enterHome): if(enterHome):
@ -161,7 +161,7 @@ class AdvancedBackupEditor:
contextOption = self.dialog.contextmenu(cOptions) contextOption = self.dialog.contextmenu(cOptions)
if(contextOption == 0): if(contextOption == 0):
if(self.dialog.yesno(heading=utils.getString(30123), line1=utils.getString(30128))): if(self.dialog.yesno(heading=utils.getString(30123), message=utils.getString(30128))):
# remove folder # remove folder
del backupSet['dirs'][optionSelected - 3] del backupSet['dirs'][optionSelected - 3]
elif(contextOption == 1 and backupSet['dirs'][optionSelected - 3]['type'] == 'include'): elif(contextOption == 1 and backupSet['dirs'][optionSelected - 3]['type'] == 'include'):
@ -217,7 +217,7 @@ class AdvancedBackupEditor:
customPaths.updateSet(aSet['name'], updatedSet) customPaths.updateSet(aSet['name'], updatedSet)
elif(menuOption == 1): elif(menuOption == 1):
if(self.dialog.yesno(heading=utils.getString(30127), line1=utils.getString(30128))): if(self.dialog.yesno(heading=utils.getString(30127), message=utils.getString(30128))):
# delete this path - subtract one because of "add" item # delete this path - subtract one because of "add" item
customPaths.deleteSet(exitCondition - 1) customPaths.deleteSet(exitCondition - 1)