mirror of
https://github.com/spalencsar/bearhub.git
synced 2026-07-07 03:34:15 +02:00
[fix][ui] not changing the 'update select' button after ignoring a package update
This commit is contained in:
@@ -186,13 +186,13 @@ class AppsTable(QTableWidget):
|
||||
def refresh(self, pkg: PackageView):
|
||||
self._update_row(pkg, update_check_enabled=False, change_update_col=False)
|
||||
|
||||
def update_package(self, pkg: PackageView):
|
||||
def update_package(self, pkg: PackageView, change_update_col: bool = False):
|
||||
if self.download_icons and pkg.model.icon_url:
|
||||
icon_request = QNetworkRequest(QUrl(pkg.model.icon_url))
|
||||
icon_request.setAttribute(QNetworkRequest.FollowRedirectsAttribute, True)
|
||||
self.network_man.get(icon_request)
|
||||
|
||||
self._update_row(pkg, change_update_col=False)
|
||||
self._update_row(pkg, change_update_col=change_update_col)
|
||||
|
||||
def _uninstall_app(self, app_v: PackageView):
|
||||
if dialog.ask_confirmation(title=self.i18n['manage_window.apps_table.row.actions.uninstall.popup.title'],
|
||||
|
||||
@@ -1271,7 +1271,7 @@ class ManageWindow(QWidget):
|
||||
self.finish_action()
|
||||
|
||||
if res['success']:
|
||||
self.table_apps.update_package(res['pkg'])
|
||||
self.table_apps.update_package(res['pkg'], change_update_col=True)
|
||||
dialog.show_message(title=self.i18n['success'].capitalize(),
|
||||
body=self.i18n['action.{}.success'.format(res['action'])].format(bold(res['pkg'].model.name)),
|
||||
type_=MessageType.INFO)
|
||||
|
||||
Reference in New Issue
Block a user