From fbdc9ed2236060cb46f4408633e20e46af195fc3 Mon Sep 17 00:00:00 2001 From: Jaime van Kessel Date: Fri, 27 Oct 2017 16:35:09 +0200 Subject: [PATCH] Added reload qml action --- resources/qml/Actions.qml | 10 ++++++++++ resources/qml/Cura.qml | 1 + 2 files changed, 11 insertions(+) diff --git a/resources/qml/Actions.qml b/resources/qml/Actions.qml index cc27520a02..054a6bed09 100644 --- a/resources/qml/Actions.qml +++ b/resources/qml/Actions.qml @@ -244,6 +244,16 @@ Item onTriggered: CuraApplication.groupSelected(); } + Action + { + id: reloadQmlAction + onTriggered: + { + CuraApplication.reloadQML() + } + shortcut: "Shift+F5" + } + Action { id: unGroupObjectsAction diff --git a/resources/qml/Cura.qml b/resources/qml/Cura.qml index cb0211f29f..e25de60dae 100644 --- a/resources/qml/Cura.qml +++ b/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