Use the resetWorkspace for new project

This makes it a bit cleaner as we don't have to copy functionality

CURA-6627
This commit is contained in:
Jaime van Kessel 2020-01-14 11:04:42 +01:00
parent 2a28321588
commit 414b696b32
No known key found for this signature in database
GPG key ID: 3710727397403C91

View file

@ -127,8 +127,8 @@ Item
icon: StandardIcon.Question
onYes:
{
CuraApplication.deleteAll();
Cura.Actions.resetProfile.trigger();
CuraApplication.resetWorkspace()
Cura.Actions.resetProfile.trigger()
UM.Controller.setActiveStage("PrepareStage")
}
}