diff --git a/main.py b/main.py index 430940cd..b1b3c18b 100644 --- a/main.py +++ b/main.py @@ -92,7 +92,6 @@ def __init__(self): self.systray : SystrayWrapper = None self.lang_actions = {} - self.translator = PyQt6.QtCore.QTranslator(self) self.language_action_group = QActionGroup(self) self.language_action_group.setExclusive(True) @@ -887,9 +886,9 @@ def process_events(): restart = True exit_code = -1 app = PyQt6.QtWidgets.QApplication(sys.argv) + translator = PyQt6.QtCore.QTranslator(app) # Translator must be created before UI loaded while(restart): restart = False - translator = PyQt6.QtCore.QTranslator() # Languages must be created before UI loaded window = MainUi() if (sys.platform == "win32" or "Windows" in sys.platform): # only on windows, for macOS and linux use system palette.