예제 #1
0
 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)
예제 #2
0
 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)
예제 #3
0
    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)
예제 #4
0
파일: window.py 프로젝트: vinifmor/fpakman
    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()