Disable instead of hide menu bar option on Linux

Co-authored-by: Sefa Eyeoglu <contact@scrumplex.net>
This commit is contained in:
Kenneth Chew 2022-04-17 20:32:51 +00:00 committed by GitHub
parent 3acc761419
commit 6b45386252
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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