From d2077def9363600a60a8caf1bf0664faacd726d4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vin=C3=ADcius=20Moreira?= Date: Fri, 20 Dec 2019 10:23:36 -0300 Subject: [PATCH 1/2] [fix] Fix missing i18n keys when there are no mapped translations for the system's default locale --- CHANGELOG.md | 4 ++++ bauh/__init__.py | 2 +- bauh/view/util/translation.py | 2 +- 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index c1f08a6f..c9bb9dd2 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,10 @@ All notable changes to this project will be documented in this file. 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) + ## [0.7.4] 2019-12-09 ### Improvements - AUR diff --git a/bauh/__init__.py b/bauh/__init__.py index d3a4efa3..02ce1627 100644 --- a/bauh/__init__.py +++ b/bauh/__init__.py @@ -1,4 +1,4 @@ -__version__ = '0.7.4' +__version__ = '0.7.5' __app_name__ = 'bauh' import os diff --git a/bauh/view/util/translation.py b/bauh/view/util/translation.py index ae3a349d..da6d27cc 100644 --- a/bauh/view/util/translation.py +++ b/bauh/view/util/translation.py @@ -53,7 +53,7 @@ def get_locale_keys(key: str = None, locale_dir: str = resource.get_path('locale break if not locale_path: - return key, {} + return current_locale if current_locale else key, {} with open(locale_path, 'r') as f: locale_keys = f.readlines() From c1cf3228ea6d11a6d08172ad5744d7a311c014fa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vin=C3=ADcius=20Moreira?= Date: Fri, 20 Dec 2019 12:34:01 -0300 Subject: [PATCH 2/2] [fix] Tray icon is not updating its status after an application is uninstalled --- CHANGELOG.md | 1 + bauh/view/qt/window.py | 3 +++ 2 files changed, 4 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index c9bb9dd2..a459af0c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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 diff --git a/bauh/view/qt/window.py b/bauh/view/qt/window.py index c7a449d2..903f56b7 100755 --- a/bauh/view/qt/window.py +++ b/bauh/view/qt/window.py @@ -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 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']))