mirror of
https://github.com/spalencsar/bearhub.git
synced 2026-07-08 16:44:16 +02:00
[fix] Tray icon is not updating its status after an application is uninstalled
This commit is contained in:
@@ -7,6 +7,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
|
|||||||
## [0.7.5] 2019-12-20
|
## [0.7.5] 2019-12-20
|
||||||
### Fixes
|
### Fixes
|
||||||
- Fix missing i18n keys when there are no mapped translations for the system's default locale [#40](https://github.com/vinifmor/bauh/issues/40)
|
- Fix missing i18n keys when there are no mapped translations for the system's default locale [#40](https://github.com/vinifmor/bauh/issues/40)
|
||||||
|
- Tray icon is not updating its status after an application is uninstalled
|
||||||
|
|
||||||
## [0.7.4] 2019-12-09
|
## [0.7.4] 2019-12-09
|
||||||
### Improvements
|
### Improvements
|
||||||
|
|||||||
@@ -539,6 +539,9 @@ class ManageWindow(QWidget):
|
|||||||
only_pkg_type = len([p for p in self.pkgs if p.model.get_type() == pkgv.model.get_type()]) >= 2
|
only_pkg_type = len([p for p in self.pkgs if p.model.get_type() == pkgv.model.get_type()]) >= 2
|
||||||
self.recent_uninstall = True
|
self.recent_uninstall = True
|
||||||
self.refresh_apps(pkg_types={pkgv.model.__class__} if only_pkg_type else None)
|
self.refresh_apps(pkg_types={pkgv.model.__class__} if only_pkg_type else None)
|
||||||
|
|
||||||
|
if self.tray_icon:
|
||||||
|
self.tray_icon.verify_updates()
|
||||||
else:
|
else:
|
||||||
if self._can_notify_user():
|
if self._can_notify_user():
|
||||||
util.notify_user('{}: {}'.format(pkgv.model.name, self.i18n['notification.uninstall.failed']))
|
util.notify_user('{}: {}'.format(pkgv.model.name, self.i18n['notification.uninstall.failed']))
|
||||||
|
|||||||
Reference in New Issue
Block a user