mirror of
https://gitlab.com/pholy/OSCAR-code.git
synced 2025-04-06 19:20:45 +00:00
Fix macOS application menu
This commit is contained in:
parent
a5c1e8204c
commit
a074cffa5b
@ -117,10 +117,9 @@ void MainWindow::SetupGUI()
|
|||||||
setWindowTitle(STR_TR_OSCAR + QString(" %1").arg(version));
|
setWindowTitle(STR_TR_OSCAR + QString(" %1").arg(version));
|
||||||
|
|
||||||
#ifdef Q_OS_MAC
|
#ifdef Q_OS_MAC
|
||||||
|
|
||||||
ui->action_About->setMenuRole(QAction::ApplicationSpecificRole);
|
ui->action_About->setMenuRole(QAction::ApplicationSpecificRole);
|
||||||
ui->action_Preferences->setMenuRole(QAction::ApplicationSpecificRole);
|
ui->action_Preferences->setMenuRole(QAction::ApplicationSpecificRole);
|
||||||
ui->action_Exit->setMenuRole(QAction::ApplicationSpecificRole);
|
ui->action_Preferences->setShortcuts(QKeySequence::Preferences);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
ui->actionToggle_Line_Cursor->setChecked(AppSetting->lineCursorMode());
|
ui->actionToggle_Line_Cursor->setChecked(AppSetting->lineCursorMode());
|
||||||
|
Loading…
Reference in New Issue
Block a user