Skip to content

Commit

Permalink
fix menus on linux
Browse files Browse the repository at this point in the history
  • Loading branch information
zdimension committed Jun 27, 2018
1 parent f9d41bf commit 4155aa7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/forms/mainwindow.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down Expand Up @@ -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())
Expand Down

0 comments on commit 4155aa7

Please sign in to comment.