mirror of
https://github.com/robweber/xbmcbackup.git
synced 2024-11-14 20:35:48 +01:00
start of #132
This commit is contained in:
parent
adbf225ea2
commit
b6e57b04b1
@ -59,3 +59,6 @@ elif(params['action'] == 'remove_auth'):
|
|||||||
elif(params['action'] == 'advanced_editor'):
|
elif(params['action'] == 'advanced_editor'):
|
||||||
editor = AdvancedBackupEditor()
|
editor = AdvancedBackupEditor()
|
||||||
editor.showMainScreen()
|
editor.showMainScreen()
|
||||||
|
elif(params['action'] == 'advanced_copy_config'):
|
||||||
|
editor = AdvancedBackupEditor()
|
||||||
|
editor.copySimpleConfig()
|
||||||
|
@ -175,4 +175,12 @@ class AdvancedBackupEditor:
|
|||||||
#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)
|
||||||
|
|
||||||
|
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):
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
@ -27,6 +27,7 @@
|
|||||||
<setting id="backup_thumbnails" type="bool" label="30034" default="true" visible="eq(-6,0)"/>
|
<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="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_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>
|
||||||
<category id="scheduling" label="30013">
|
<category id="scheduling" label="30013">
|
||||||
<setting id="enable_scheduler" type="bool" label="30060" default="false" />
|
<setting id="enable_scheduler" type="bool" label="30060" default="false" />
|
||||||
|
Loading…
Reference in New Issue
Block a user