[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

@@ -1226,7 +1226,8 @@ class ManageWindow(QWidget):
def _finish_custom_action(self, res: dict):
self.finish_action()
if res['success']:
self.refresh_packages(pkg_types={res['pkg'].model.__class__} if res['pkg'] else None)
if res['action'].refresh:
self.refresh_packages(pkg_types={res['pkg'].model.__class__} if res['pkg'] else None)
else:
self.checkbox_console.setChecked(True)