Browse Source

Use the resetWorkspace for new project

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

CURA-6627
Jaime van Kessel 5 years ago
parent
commit
414b696b32
1 changed files with 2 additions and 2 deletions
  1. 2 2
      resources/qml/MainWindow/ApplicationMenu.qml

+ 2 - 2
resources/qml/MainWindow/ApplicationMenu.qml

@@ -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")
         }
     }