From b7e613a271c6294c91c1bcb861487aeee878ad72 Mon Sep 17 00:00:00 2001 From: Kostas Karmas Date: Tue, 19 Jan 2021 21:39:16 +0100 Subject: [PATCH] Remove file_type argument from the saveWorkspaceDialog Because we also want to export ufp files, which are not workspace files. CURA-7865 --- resources/qml/Menus/SaveProjectMenu.qml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/resources/qml/Menus/SaveProjectMenu.qml b/resources/qml/Menus/SaveProjectMenu.qml index 35c511344b..100e6f2ea4 100644 --- a/resources/qml/Menus/SaveProjectMenu.qml +++ b/resources/qml/Menus/SaveProjectMenu.qml @@ -23,7 +23,7 @@ Menu text: model.name onTriggered: { - var args = { "file_type": "workspace" }; + var args = {}; if (UM.Preferences.getValue("cura/dialog_on_project_save")) { saveWorkspaceDialog.deviceId = model.id @@ -35,8 +35,8 @@ Menu UM.OutputDeviceManager.requestWriteToDevice(model.id, PrintInformation.jobName, args) } } - // Unassign the shortcuts when the submenu is invisible (i.e. when there is only one file provider) to avoid ambiguous shortcuts. - // When there is a signle file provider, the openAction is assigned with the Ctrl+O shortcut instead. + // 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 : "" } onObjectAdded: saveProjectMenu.insertItem(index, object)