Conditionally add ctrl+, hotkey to open settings

Only do this for mac, as it is not customary on other OSes

CURA-9939
This commit is contained in:
c.lamboo 2022-11-30 15:10:15 +01:00
parent 57b3b43096
commit 8ce2af290c

View File

@ -187,7 +187,8 @@ Item
//- https://doc.qt.io/qt-5/qmenubar.html#qmenubar-as-a-global-menu-bar //- https://doc.qt.io/qt-5/qmenubar.html#qmenubar-as-a-global-menu-bar
text: (Qt.platform.os == "osx") ? "Configure Cura..." : catalog.i18nc("@action:inmenu", "Configure Cura...") text: (Qt.platform.os == "osx") ? "Configure Cura..." : catalog.i18nc("@action:inmenu", "Configure Cura...")
icon.name: "configure" icon.name: "configure"
shortcut: "Ctrl+," // on MacOS it us customary to assign the ctrl+, hotkey to open a general settings menu
shortcut: (Qt.platform.os == "osx") ? "Ctrl+," : ""
} }
Action Action