[view] fix: double suggestions loading call when no app is returned

This commit is contained in:
Vinicius Moreira
2022-05-20 17:38:19 -03:00
parent fbd98d8b31
commit 684248461b
2 changed files with 5 additions and 2 deletions

View File

@@ -46,6 +46,9 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
- Flatpak
- not all selected runtime partials to upgrade are actually requested to be upgraded
- UI
- double suggestions loading call when no app is returned
## [0.10.2] 2022-04-16
### Improvements

View File

@@ -969,12 +969,12 @@ class ManageWindow(QWidget):
commons.update_info(pkgv, pkgs_info)
commons.apply_filters(pkgv, filters, pkgs_info)
if pkgs_info['apps_count'] == 0:
if pkgs_info['apps_count'] == 0 and not self.suggestions_requested:
if self.load_suggestions or self.types_changed:
if as_installed:
self.pkgs_installed = pkgs_info['pkgs']
self.begin_load_suggestions(filter_installed=False)
self.begin_load_suggestions(filter_installed=True)
self.load_suggestions = False
return False
else: