aboutsummaryrefslogtreecommitdiff
path: root/launcher
diff options
context:
space:
mode:
authorEzekiel Smith <ezekielsmith@protonmail.com>2022-06-27 01:14:15 +1000
committerGitHub <noreply@github.com>2022-06-27 01:14:15 +1000
commit774ed044fcac9c444f41e0f93435089338e8366c (patch)
tree5fab8b4c729a0a076d378c958ceac234a0d41849 /launcher
parent9cc235cde0624e7797d6a37ebc3171b9f69ac926 (diff)
parentc31fce362153a0a3b89d1edd0360208ecec228a1 (diff)
downloadPrismLauncher-774ed044fcac9c444f41e0f93435089338e8366c.tar.gz
PrismLauncher-774ed044fcac9c444f41e0f93435089338e8366c.tar.bz2
PrismLauncher-774ed044fcac9c444f41e0f93435089338e8366c.zip
Merge pull request #827 from kthchew/fix/menubar-separator
Workaround Qt bug to fix menu bar separators on macOS
Diffstat (limited to 'launcher')
-rw-r--r--launcher/ui/MainWindow.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/launcher/ui/MainWindow.cpp b/launcher/ui/MainWindow.cpp
index 8c70cd49..71fab458 100644
--- a/launcher/ui/MainWindow.cpp
+++ b/launcher/ui/MainWindow.cpp
@@ -503,6 +503,8 @@ public:
menuBar->setVisible(APPLICATION->settings()->get("MenuBarInsteadOfToolBar").toBool());
fileMenu = menuBar->addMenu(tr("&File"));
+ // Workaround for QTBUG-94802 (https://bugreports.qt.io/browse/QTBUG-94802); also present for other menus
+ fileMenu->setSeparatorsCollapsible(false);
fileMenu->addAction(actionAddInstance);
fileMenu->addAction(actionLaunchInstance);
fileMenu->addAction(actionLaunchInstanceOffline);
@@ -526,15 +528,18 @@ public:
fileMenu->addAction(actionSettings);
viewMenu = menuBar->addMenu(tr("&View"));
+ viewMenu->setSeparatorsCollapsible(false);
viewMenu->addAction(actionCAT);
viewMenu->addSeparator();
menuBar->addMenu(foldersMenu);
profileMenu = menuBar->addMenu(tr("&Profiles"));
+ profileMenu->setSeparatorsCollapsible(false);
profileMenu->addAction(actionManageAccounts);
helpMenu = menuBar->addMenu(tr("&Help"));
+ helpMenu->setSeparatorsCollapsible(false);
helpMenu->addAction(actionAbout);
helpMenu->addAction(actionOpenWiki);
helpMenu->addAction(actionNewsMenuBar);