mirror of
https://github.com/spalencsar/bearhub.git
synced 2026-07-08 02:44:16 +02:00
[fix][ui] table filter behavior after ignoring a package update
This commit is contained in:
@@ -708,7 +708,7 @@ class ManageWindow(QWidget):
|
|||||||
|
|
||||||
if not pkgs_info or pkgs_info['not_installed'] == 0:
|
if not pkgs_info or pkgs_info['not_installed'] == 0:
|
||||||
for app_v in (pkgs_info['pkgs_displayed'] if pkgs_info else self.pkgs):
|
for app_v in (pkgs_info['pkgs_displayed'] if pkgs_info else self.pkgs):
|
||||||
if app_v.update_checked:
|
if not app_v.model.is_update_ignored() and app_v.update_checked:
|
||||||
show_bt_upgrade = True
|
show_bt_upgrade = True
|
||||||
break
|
break
|
||||||
|
|
||||||
@@ -1271,16 +1271,17 @@ class ManageWindow(QWidget):
|
|||||||
self.finish_action()
|
self.finish_action()
|
||||||
|
|
||||||
if res['success']:
|
if res['success']:
|
||||||
if self.ref_checkbox_updates.isVisible() and self.filter_updates:
|
self.apply_filters_async()
|
||||||
self.table_apps.model().removeRow(res['pkg'].table_index)
|
# if self.ref_checkbox_updates.isVisible() and self.filter_updates:
|
||||||
del self.pkgs[res['pkg'].table_index]
|
# self.table_apps.model().removeRow(res['pkg'].table_index)
|
||||||
|
# del self.pkgs[res['pkg'].table_index]
|
||||||
if self.pkgs:
|
#
|
||||||
for idx, p in enumerate(self.pkgs):
|
# if self.pkgs:
|
||||||
p.table_index = idx
|
# for idx, p in enumerate(self.pkgs):
|
||||||
|
# p.table_index = idx
|
||||||
else:
|
#
|
||||||
self.table_apps.update_package(res['pkg'], change_update_col=True)
|
# else:
|
||||||
|
# self.table_apps.update_package(res['pkg'], change_update_col=True)
|
||||||
|
|
||||||
dialog.show_message(title=self.i18n['success'].capitalize(),
|
dialog.show_message(title=self.i18n['success'].capitalize(),
|
||||||
body=self.i18n['action.{}.success'.format(res['action'])].format(bold(res['pkg'].model.name)),
|
body=self.i18n['action.{}.success'.format(res['action'])].format(bold(res['pkg'].model.name)),
|
||||||
|
|||||||
Reference in New Issue
Block a user