mirror of
https://github.com/spalencsar/bearhub.git
synced 2026-07-07 01:14:15 +02:00
[tray] fix -> always displaying the About dialog in english
This commit is contained in:
@@ -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
|
- 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)
|
- 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'
|
- 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
|
## [0.9.6] 2020-06-26
|
||||||
|
|||||||
@@ -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):
|
def __init__(self, config: dict, screen_size: QSize, logger: logging.Logger, manage_process: Popen = None, settings_process: Popen = None):
|
||||||
super(TrayIcon, self).__init__()
|
super(TrayIcon, self).__init__()
|
||||||
|
self.app_config = config
|
||||||
self.i18n = generate_i18n(config, resource.get_path('locale/tray'))
|
self.i18n = generate_i18n(config, resource.get_path('locale/tray'))
|
||||||
self.screen_size = screen_size
|
self.screen_size = screen_size
|
||||||
self.manage_process = manage_process
|
self.manage_process = manage_process
|
||||||
@@ -262,7 +263,7 @@ class TrayIcon(QSystemTrayIcon):
|
|||||||
|
|
||||||
def show_about(self):
|
def show_about(self):
|
||||||
if self.dialog_about is None:
|
if self.dialog_about is None:
|
||||||
self.dialog_about = AboutDialog(self.i18n)
|
self.dialog_about = AboutDialog(self.app_config)
|
||||||
|
|
||||||
if self.dialog_about.isHidden():
|
if self.dialog_about.isHidden():
|
||||||
self.dialog_about.show()
|
self.dialog_about.show()
|
||||||
|
|||||||
Reference in New Issue
Block a user