Remove file_type argument from the saveWorkspaceDialog

Because we also want to export ufp files, which are not workspace files.

CURA-7865
This commit is contained in:
Kostas Karmas 2021-01-19 21:39:16 +01:00
parent f1e152955c
commit b7e613a271

View File

@ -23,7 +23,7 @@ Menu
text: model.name text: model.name
onTriggered: onTriggered:
{ {
var args = { "file_type": "workspace" }; var args = {};
if (UM.Preferences.getValue("cura/dialog_on_project_save")) if (UM.Preferences.getValue("cura/dialog_on_project_save"))
{ {
saveWorkspaceDialog.deviceId = model.id saveWorkspaceDialog.deviceId = model.id
@ -35,8 +35,8 @@ Menu
UM.OutputDeviceManager.requestWriteToDevice(model.id, PrintInformation.jobName, args) 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. // 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 a signle file provider, the openAction is assigned with the Ctrl+O shortcut instead. // When there is only the LocalFileOutputDevice, the Ctrl+S shortcut is assigned to the saveWorkspaceMenu MenuItem
shortcut: saveProjectMenu.visible ? model.shortcut : "" shortcut: saveProjectMenu.visible ? model.shortcut : ""
} }
onObjectAdded: saveProjectMenu.insertItem(index, object) onObjectAdded: saveProjectMenu.insertItem(index, object)