Fix ctrl+shift+s shortcut

This commit is contained in:
Jaime van Kessel 2022-01-17 15:06:32 +01:00
parent 3e4c171603
commit 901f6c4b63

View file

@ -40,9 +40,7 @@ Cura.Menu
UM.OutputDeviceManager.requestWriteToDevice(model.id, PrintInformation.jobName, args)
}
}
// Unassign the shortcuts when the submenu is invisible (i.e. when there is only one project output device) to avoid ambiguous shortcuts.
// When there is only the LocalFileOutputDevice, the Ctrl+S shortcut is assigned to the saveWorkspaceMenu MenuItem
shortcut: saveProjectMenu.visible ? model.shortcut : ""
shortcut: model.shortcut
}
onObjectAdded: saveProjectMenu.insertItem(index, object)
onObjectRemoved: saveProjectMenu.removeItem(object)