[fix][ui] not updating cached installed packages state after ignoring/reverting updates

This commit is contained in:
Vinícius Moreira
2020-05-28 17:09:57 -03:00
parent 9b483b9b6c
commit a2e41ce51f
9 changed files with 32 additions and 2 deletions

View File

@@ -1277,6 +1277,12 @@ class ManageWindow(QWidget):
if res['success']:
self.apply_filters_async()
if self.pkgs_installed:
cached_installed = [idx for idx, p in enumerate(self.pkgs_installed) if p == res['pkg']]
for idx in cached_installed:
self.pkgs_installed[idx] = res['pkg']
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)