def downgrade(): if dialog.ask_confirmation( title=self.window.locale_keys[ 'manage_window.apps_table.row.actions.downgrade'], body=self.window.locale_keys[ 'manage_window.apps_table.row.actions.downgrade.popup.body'] .format(app.model.base_data.name), locale_keys=self.window.locale_keys): self.window.downgrade_app(app)
def _uninstall_app(self, app_v: ApplicationView): if dialog.ask_confirmation( title=self.window.locale_keys[ 'manage_window.apps_table.row.actions.uninstall.popup.title'], body=self.window.locale_keys[ 'manage_window.apps_table.row.actions.uninstall.popup.body'] .format(app_v), locale_keys=self.window.locale_keys): self.window.uninstall_app(app_v)
def _uninstall_app(self): selected_app = self.get_selected_app() if dialog.ask_confirmation( title=self.window.locale_keys[ 'manage_window.apps_table.row.actions.uninstall.popup.title'], body=self.window.locale_keys[ 'manage_window.apps_table.row.actions.uninstall.popup.body'] .format(selected_app.model.base_data.name), locale_keys=self.window.locale_keys): self.window.uninstall_app(selected_app)
def update_selected(self): if self.apps: to_update = [ app_v for app_v in self.apps if app_v.visible and app_v.update_checked ] if to_update: if dialog.ask_confirmation( title=self. locale_keys['manage_window.upgrade_all.popup.title'], body=self. locale_keys['manage_window.upgrade_all.popup.body'], locale_keys=self.locale_keys): self._handle_console_option(True) self._begin_action( self.locale_keys['manage_window.status.upgrading']) self.thread_update.apps_to_update = to_update self.thread_update.start()