[tray] fix -> always displaying the About dialog in english

This commit is contained in:
Vinicius Moreira
2020-09-11 17:38:31 -03:00
parent ce8c2bd370
commit 3c5f37ca57
2 changed files with 3 additions and 1 deletions

View File

@@ -147,6 +147,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
- random C++ wrapper errors with some forms due to missing references
- application icons that cannot be rendered are being displayed as empty spaces (now the type icon is displayed instead)
- some application icons without a full path are not being rendered on the 'Upgrade summary'
- tray mode: always displaying the "About" dialog in english
## [0.9.6] 2020-06-26

View File

@@ -123,6 +123,7 @@ class TrayIcon(QSystemTrayIcon):
def __init__(self, config: dict, screen_size: QSize, logger: logging.Logger, manage_process: Popen = None, settings_process: Popen = None):
super(TrayIcon, self).__init__()
self.app_config = config
self.i18n = generate_i18n(config, resource.get_path('locale/tray'))
self.screen_size = screen_size
self.manage_process = manage_process
@@ -262,7 +263,7 @@ class TrayIcon(QSystemTrayIcon):
def show_about(self):
if self.dialog_about is None:
self.dialog_about = AboutDialog(self.i18n)
self.dialog_about = AboutDialog(self.app_config)
if self.dialog_about.isHidden():
self.dialog_about.show()