Skip to content

Commit

Permalink
[fix] Tray icon is not updating its status after an application is un…
Browse files Browse the repository at this point in the history
…installed
  • Loading branch information
vinifmor committed Dec 20, 2019
1 parent d2077de commit c1cf322
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
### 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)
- Tray icon is not updating its status after an application is uninstalled

## [0.7.4] 2019-12-09
### Improvements
Expand Down
3 changes: 3 additions & 0 deletions bauh/view/qt/window.py
Original file line number Diff line number Diff line change
Expand Up @@ -539,6 +539,9 @@ def _finish_uninstall(self, pkgv: PackageView):
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.refresh_apps(pkg_types={pkgv.model.__class__} if only_pkg_type else None)

if self.tray_icon:
self.tray_icon.verify_updates()
else:
if self._can_notify_user():
util.notify_user('{}: {}'.format(pkgv.model.name, self.i18n['notification.uninstall.failed']))
Expand Down

0 comments on commit c1cf322

Please sign in to comment.