This commit is contained in:
Rob Weber 2018-01-23 08:17:02 -06:00
parent adbf225ea2
commit b6e57b04b1
3 changed files with 12 additions and 0 deletions

View File

@ -59,3 +59,6 @@ elif(params['action'] == 'remove_auth'):
elif(params['action'] == 'advanced_editor'):
editor = AdvancedBackupEditor()
editor.showMainScreen()
elif(params['action'] == 'advanced_copy_config'):
editor = AdvancedBackupEditor()
editor.copySimpleConfig()

View File

@ -174,5 +174,13 @@ class AdvancedBackupEditor:
if(self.dialog.yesno(heading=utils.getString(30127),line1=utils.getString(30128))):
#delete this path - subtract one because of "add" item
customPaths.deleteSet(exitCondition -1)
def copySimpleConfig(self):
#disclaimer in case the user hit this on accident
shouldContinue = self.dialog.yesno('Copy Config','This will copy the current Simple file selection to the Advanced Editor','This will erase any current Advanced Editor settings')
if(shouldContinue):

View File

@ -27,6 +27,7 @@
<setting id="backup_thumbnails" type="bool" label="30034" default="true" visible="eq(-6,0)"/>
<setting id="backup_config" type="bool" label="30035" default="true" visible="eq(-7,0)"/>
<setting id="advanced_button" type="action" label="Select Files" visible="eq(-8,1)" action="RunScript(special://home/addons/script.xbmcbackup/launcher.py,action=advanced_editor)" />
<setting id="advanced_defaults" type="action" label="Copy Simple Config" visible="eq(-9,1)" action="RunScript(special://home/addons/script.xbmcbackup/launcher.py,action=advanced_copy_config)" />
</category>
<category id="scheduling" label="30013">
<setting id="enable_scheduler" type="bool" label="30060" default="false" />