Browse Source

Added reload qml action

Jaime van Kessel 7 years ago
parent
commit
fbdc9ed223
2 changed files with 11 additions and 0 deletions
  1. 10 0
      resources/qml/Actions.qml
  2. 1 0
      resources/qml/Cura.qml

+ 10 - 0
resources/qml/Actions.qml

@@ -244,6 +244,16 @@ Item
         onTriggered: CuraApplication.groupSelected();
     }
 
+    Action
+    {
+        id: reloadQmlAction
+        onTriggered:
+        {
+            CuraApplication.reloadQML()
+        }
+        shortcut: "Shift+F5"
+    }
+
     Action
     {
         id: unGroupObjectsAction

+ 1 - 0
resources/qml/Cura.qml

@@ -46,6 +46,7 @@ UM.MainWindow
         //
         // This has been fixed for QtQuick Controls 2 since the Shortcut item has a context property.
         Cura.Actions.parent = backgroundItem
+        CuraApplication.purgeWindows()
     }
 
     Item