mirror of
https://github.com/spalencsar/bearhub.git
synced 2026-07-07 04:44:15 +02:00
[suggestions] showing suggestions if the user changes the available types and there are no applications installed
This commit is contained in:
@@ -8,6 +8,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
|
|||||||
### Improvements
|
### Improvements
|
||||||
- Snap
|
- Snap
|
||||||
- not showing **License** in the info window if it defined as **unset**
|
- not showing **License** in the info window if it defined as **unset**
|
||||||
|
- showing suggestions if the user changes the application types available and there are no applications installed
|
||||||
- i18n: spanish contributions by [fitojb](https://github.com/fitojb)
|
- i18n: spanish contributions by [fitojb](https://github.com/fitojb)
|
||||||
- minor labels improvements
|
- minor labels improvements
|
||||||
|
|
||||||
|
|||||||
@@ -91,6 +91,7 @@ class GemSelectorPanel(QWidget):
|
|||||||
self.manager.reset_cache()
|
self.manager.reset_cache()
|
||||||
self.manager.prepare()
|
self.manager.prepare()
|
||||||
self.window.verify_warnings()
|
self.window.verify_warnings()
|
||||||
|
self.window.types_changed = True
|
||||||
self.window.refresh_apps()
|
self.window.refresh_apps()
|
||||||
self.close()
|
self.close()
|
||||||
|
|
||||||
|
|||||||
@@ -284,6 +284,7 @@ class ManageWindow(QWidget):
|
|||||||
self.progress_controll_enabled = True
|
self.progress_controll_enabled = True
|
||||||
self.recent_installation = False
|
self.recent_installation = False
|
||||||
self.recent_uninstall = False
|
self.recent_uninstall = False
|
||||||
|
self.types_changed = False
|
||||||
|
|
||||||
self.dialog_about = None
|
self.dialog_about = None
|
||||||
self.first_refresh = suggestions
|
self.first_refresh = suggestions
|
||||||
@@ -474,6 +475,7 @@ class ManageWindow(QWidget):
|
|||||||
self.update_pkgs(res['installed'], as_installed=as_installed, types=res['types'], keep_filters=self.recent_uninstall and res['types'])
|
self.update_pkgs(res['installed'], as_installed=as_installed, types=res['types'], keep_filters=self.recent_uninstall and res['types'])
|
||||||
self.first_refresh = False
|
self.first_refresh = False
|
||||||
self.recent_uninstall = False
|
self.recent_uninstall = False
|
||||||
|
self.types_changed = False
|
||||||
self._hide_fields_after_recent_installation()
|
self._hide_fields_after_recent_installation()
|
||||||
|
|
||||||
def uninstall_app(self, app: PackageView):
|
def uninstall_app(self, app: PackageView):
|
||||||
@@ -640,7 +642,7 @@ class ManageWindow(QWidget):
|
|||||||
commons.apply_filters(pkgv, filters, pkgs_info)
|
commons.apply_filters(pkgv, filters, pkgs_info)
|
||||||
|
|
||||||
if pkgs_info['apps_count'] == 0:
|
if pkgs_info['apps_count'] == 0:
|
||||||
if self.first_refresh:
|
if self.first_refresh or self.types_changed:
|
||||||
self._begin_search('')
|
self._begin_search('')
|
||||||
self.thread_suggestions.start()
|
self.thread_suggestions.start()
|
||||||
return
|
return
|
||||||
|
|||||||
Reference in New Issue
Block a user