mirror of
https://github.com/spalencsar/bearhub.git
synced 2026-07-07 02:24:16 +02:00
[fix][ui] upgrade action not respecting packages with ignored updates
This commit is contained in:
@@ -364,7 +364,7 @@ class UpgradeSelected(AsyncAction):
|
||||
self.pkgs = None
|
||||
return
|
||||
|
||||
to_update = [pkg for pkg in self.pkgs if pkg.model.update and pkg.update_checked]
|
||||
to_update = [pkg for pkg in self.pkgs if pkg.model.update and not pkg.model.is_update_ignored() and pkg.update_checked]
|
||||
|
||||
if len(to_update) > 1:
|
||||
self.disable_progress_controll()
|
||||
|
||||
@@ -1273,6 +1273,12 @@ class ManageWindow(QWidget):
|
||||
if res['success']:
|
||||
if self.ref_checkbox_updates.isVisible() and self.filter_updates:
|
||||
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):
|
||||
p.table_index = idx
|
||||
|
||||
else:
|
||||
self.table_apps.update_package(res['pkg'], change_update_col=True)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user