mirror of
https://github.com/spalencsar/bearhub.git
synced 2026-07-10 08:54:14 +02:00
confirmation dialog for upgrade all button
This commit is contained in:
@@ -14,7 +14,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
|
|||||||
- check update button design changed for better UX
|
- check update button design changed for better UX
|
||||||
- app information is now available through an "Info" button
|
- app information is now available through an "Info" button
|
||||||
- app extra actions are now available through a "Settings" button instead of right-click
|
- app extra actions are now available through a "Settings" button instead of right-click
|
||||||
- a confirmation popup is shown when the "install" button is clicked
|
- a confirmation popup is shown when the "install" / "upgrade all" button is clicked
|
||||||
- minor GUI improvements
|
- minor GUI improvements
|
||||||
### Fixes:
|
### Fixes:
|
||||||
- apps table not showing empty descriptions
|
- apps table not showing empty descriptions
|
||||||
|
|||||||
@@ -109,3 +109,5 @@ install=install
|
|||||||
uninstall=uninstall
|
uninstall=uninstall
|
||||||
bt.app_upgrade=Upgrade
|
bt.app_upgrade=Upgrade
|
||||||
bt.app_not_upgrade=Don't upgrade
|
bt.app_not_upgrade=Don't upgrade
|
||||||
|
manage_window.upgrade_all.popup.title=Upgrade
|
||||||
|
manage_window.upgrade_all.popup.body=Upgrade all selected applications ?
|
||||||
@@ -111,3 +111,5 @@ install=instalar
|
|||||||
uninstall=desinstalar
|
uninstall=desinstalar
|
||||||
bt.app_upgrade=Actualizar
|
bt.app_upgrade=Actualizar
|
||||||
bt.app_not_upgrade=No actualizar
|
bt.app_not_upgrade=No actualizar
|
||||||
|
manage_window.upgrade_all.popup.title=Actualizar
|
||||||
|
manage_window.upgrade_all.popup.body=¿Actualizar todos los aplicativos seleccionados?
|
||||||
@@ -111,3 +111,5 @@ install=instalar
|
|||||||
uninstall=desinstalar
|
uninstall=desinstalar
|
||||||
bt.app_upgrade=Atualizar
|
bt.app_upgrade=Atualizar
|
||||||
bt.app_not_upgrade=Não atualizar
|
bt.app_not_upgrade=Não atualizar
|
||||||
|
manage_window.upgrade_all.popup.title=Atualizar
|
||||||
|
manage_window.upgrade_all.popup.body=Atualizar todos os aplicativos selecionados ?
|
||||||
@@ -11,6 +11,7 @@ from fpakman.core import resource, system
|
|||||||
from fpakman.core.controller import ApplicationManager
|
from fpakman.core.controller import ApplicationManager
|
||||||
from fpakman.core.model import Application
|
from fpakman.core.model import Application
|
||||||
from fpakman.util.cache import Cache
|
from fpakman.util.cache import Cache
|
||||||
|
from fpakman.view.qt import dialog
|
||||||
from fpakman.view.qt.apps_table import AppsTable
|
from fpakman.view.qt.apps_table import AppsTable
|
||||||
from fpakman.view.qt.history import HistoryDialog
|
from fpakman.view.qt.history import HistoryDialog
|
||||||
from fpakman.view.qt.info import InfoDialog
|
from fpakman.view.qt.info import InfoDialog
|
||||||
@@ -488,6 +489,10 @@ class ManageWindow(QWidget):
|
|||||||
to_update = [app_v for app_v in self.apps if app_v.visible and app_v.update_checked]
|
to_update = [app_v for app_v in self.apps if app_v.visible and app_v.update_checked]
|
||||||
|
|
||||||
if to_update:
|
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._handle_console_option(True)
|
||||||
|
|
||||||
self._begin_action(self.locale_keys['manage_window.status.upgrading'])
|
self._begin_action(self.locale_keys['manage_window.status.upgrading'])
|
||||||
|
|||||||
Reference in New Issue
Block a user