fix: not loading application icons after some filters are applied to the table results

This commit is contained in:
Vinicius Moreira
2019-10-22 12:34:09 -03:00
parent 8965d0a300
commit 52f313032b
3 changed files with 13 additions and 0 deletions

View File

@@ -16,6 +16,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
### Fixes
- application not initializing when there is no internet connection
- not loading application icons after some filters are applied to the table results
- AUR:
- update-checking for some scenarios
- not respecting **ignorepkg** settings in **pacman.conf**

View File

@@ -352,6 +352,7 @@ class VerifyModels(QThread):
def __init__(self, apps: List[PackageView] = None):
super(VerifyModels, self).__init__()
self.apps = apps
self.work = True
def run(self):
@@ -361,6 +362,10 @@ class VerifyModels(QThread):
last_ready = 0
while True:
if not self.work:
break
current_ready = 0
for app in self.apps:
@@ -379,6 +384,7 @@ class VerifyModels(QThread):
time.sleep(0.1)
self.work = True
self.apps = None

View File

@@ -314,6 +314,12 @@ class ManageWindow(QWidget):
self._update_table(pkgs_info=pkgs_info, signal=True)
self.update_bt_upgrade(pkgs_info)
if self.pkgs_available:
self.thread_verify_models.work = False
self.thread_verify_models.wait(50)
self.thread_verify_models.apps = self.pkgs_available
self.thread_verify_models.start()
def _finish_apply_filters_async(self, success: bool):
self.label_status.setText('')
self.ref_toolbar_search.setVisible(True)