From b6e57b04b15b6752cdc6c4dc4e701de6f00d88e6 Mon Sep 17 00:00:00 2001 From: Rob Weber Date: Tue, 23 Jan 2018 08:17:02 -0600 Subject: [PATCH] start of #132 --- launcher.py | 3 +++ resources/lib/advanced_editor.py | 8 ++++++++ resources/settings.xml | 1 + 3 files changed, 12 insertions(+) diff --git a/launcher.py b/launcher.py index 37b7e4e..0b0fa1b 100644 --- a/launcher.py +++ b/launcher.py @@ -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() diff --git a/resources/lib/advanced_editor.py b/resources/lib/advanced_editor.py index 8b81eb7..e7e6c77 100644 --- a/resources/lib/advanced_editor.py +++ b/resources/lib/advanced_editor.py @@ -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): + + diff --git a/resources/settings.xml b/resources/settings.xml index 53e3861..86b87e0 100644 --- a/resources/settings.xml +++ b/resources/settings.xml @@ -27,6 +27,7 @@ +