aboutsummaryrefslogtreecommitdiff
path: root/launcher
diff options
context:
space:
mode:
authorKenneth Chew <79120643+kthchew@users.noreply.github.com>2022-04-17 20:32:51 +0000
committerGitHub <noreply@github.com>2022-04-17 20:32:51 +0000
commit6b45386252caa03cecf0e18777691e4895770e5c (patch)
treed889b3c46ead00393173ac296ec49bafb252718b /launcher
parent3acc7614194d4e164bebc1e97c818a99ecdb2607 (diff)
downloadPrismLauncher-6b45386252caa03cecf0e18777691e4895770e5c.tar.gz
PrismLauncher-6b45386252caa03cecf0e18777691e4895770e5c.tar.bz2
PrismLauncher-6b45386252caa03cecf0e18777691e4895770e5c.zip
Disable instead of hide menu bar option on Linux
Co-authored-by: Sefa Eyeoglu <contact@scrumplex.net>
Diffstat (limited to 'launcher')
-rw-r--r--launcher/ui/pages/global/LauncherPage.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/launcher/ui/pages/global/LauncherPage.cpp b/launcher/ui/pages/global/LauncherPage.cpp
index a213eff0..097a2bfa 100644
--- a/launcher/ui/pages/global/LauncherPage.cpp
+++ b/launcher/ui/pages/global/LauncherPage.cpp
@@ -414,7 +414,10 @@ void LauncherPage::loadSettings()
}
// Toolbar/menu bar settings (not applicable if native menu bar is present)
+ ui->toolsBox->setEnabled(!QMenuBar().isNativeMenuBar());
+#ifdef Q_OS_MACOS
ui->toolsBox->setVisible(!QMenuBar().isNativeMenuBar());
+#endif
ui->preferMenuBarCheckBox->setChecked(s->get("MenuBarInsteadOfToolBar").toBool());
// Console settings