mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-18 20:28:01 -06:00
Consider user preference when opening project files from cli.
The logic using just a "skip_project_file_check" boolean was too obscure imho, so used a string value with more explicit values to improve readability CURA-6824
This commit is contained in:
parent
eb1d0248c2
commit
2df0d96923
3 changed files with 23 additions and 5 deletions
|
@ -53,7 +53,7 @@ UM.Dialog
|
|||
UM.Preferences.setValue("cura/choice_on_open_project", "open_as_model")
|
||||
}
|
||||
|
||||
CuraApplication.readLocalFile(base.fileUrl, true)
|
||||
CuraApplication.readLocalFile(base.fileUrl, "open_as_model")
|
||||
var meshName = backgroundItem.getMeshName(base.fileUrl.toString())
|
||||
backgroundItem.hasMesh(decodeURIComponent(meshName))
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue