[feature] new 'restore' custom action

This commit is contained in:
Vinícius Moreira
2020-05-09 14:52:01 -03:00
parent 4bc4481e00
commit 7f4f2c805c
17 changed files with 106 additions and 27 deletions

View File

@@ -874,7 +874,7 @@ class CustomAction(AsyncAction):
if self.custom_action.backup:
app_config = read_config()
if not self.request_backup(app_config, None, self.i18n, self.root_pwd):
self.notify_finished({'success': False, 'pkg': self.pkg})
self.notify_finished({'success': False, 'pkg': self.pkg, 'action': self.custom_action})
self.pkg = None
self.custom_action = None
self.root_pwd = None
@@ -889,7 +889,7 @@ class CustomAction(AsyncAction):
success = False
self.signal_output.emit(self.i18n['internet.required'])
self.notify_finished({'success': success, 'pkg': self.pkg})
self.notify_finished({'success': success, 'pkg': self.pkg, 'action': self.custom_action})
self.pkg = None
self.custom_action = None
self.root_pwd = None