PreferencesMenu.qml 924 B

12345678910111213141516171819202122232425
  1. // Copyright (c) 2022 Ultimaker B.V.
  2. // Cura is released under the terms of the LGPLv3 or higher.
  3. import QtQuick 2.7
  4. import QtQuick.Controls 2.4
  5. import UM 1.5 as UM
  6. import Cura 1.0 as Cura
  7. Cura.Menu
  8. {
  9. id: preferencesMenu
  10. //On MacOS, don't translate the "Preferences" word.
  11. //Qt moves the "preferences" entry to a different place, and if it got renamed can't find it again when it
  12. //attempts to delete the item upon closing the application, causing a crash.
  13. //In the new location, these items are translated automatically according to the system's language.
  14. //For more information, see:
  15. //- https://doc.qt.io/qt-5/macos-issues.html#menu-bar
  16. //- https://doc.qt.io/qt-5/qmenubar.html#qmenubar-as-a-global-menu-bar
  17. title: (Qt.platform.os == "osx") ? "&Preferences" : catalog.i18nc("@title:menu menubar:toplevel", "P&references")
  18. Cura.MenuItem { action: Cura.Actions.preferences }
  19. }