From 4155aa70b82d750f17413e79d8435ada1e7275a1 Mon Sep 17 00:00:00 2001 From: zdimension Date: Wed, 27 Jun 2018 17:34:10 +0200 Subject: [PATCH] fix menus on linux --- src/forms/mainwindow.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/forms/mainwindow.py b/src/forms/mainwindow.py index a8005ee..680ca31 100644 --- a/src/forms/mainwindow.py +++ b/src/forms/mainwindow.py @@ -1263,7 +1263,7 @@ def change_language(language: str): fix_qt_shitty_margins() fix_tabwidget_width() - if sys.platform == "darwin": + if sys.platform in ["darwin", "linux"]: GuiState.ui.menuLanguage.setTitle(QLocale(language).nativeLanguageName()) if util.settings.value("load_articles", False, type=bool): @@ -2337,7 +2337,7 @@ def init_ui(): init_action_handlers() - if sys.platform != "darwin": + if sys.platform not in ["darwin", "linux"]: right_corner = QMenuBar() GuiState.ui.menubar.removeAction(GuiState.ui.menuLanguage.menuAction()) right_corner.addAction(GuiState.ui.menuLanguage.menuAction())