From 47f820fe6993cde697b1d9c345aa3721db565bf9 Mon Sep 17 00:00:00 2001 From: Ghostkeeper Date: Thu, 25 Oct 2018 10:47:21 +0200 Subject: [PATCH] Don't disable entire view menu when viewing g-code Just disable the part about switching views. Yes, you can still select the view from the actual view selection drop-down in the main window. Well, it's an improvement, not a complete fix. The complete fix is deferred. --- resources/qml/Menus/ViewMenu.qml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/resources/qml/Menus/ViewMenu.qml b/resources/qml/Menus/ViewMenu.qml index 9a2e603673..21e9557718 100644 --- a/resources/qml/Menus/ViewMenu.qml +++ b/resources/qml/Menus/ViewMenu.qml @@ -1,4 +1,4 @@ -// Copyright (c) 2016 Ultimaker B.V. +// Copyright (c) 2018 Ultimaker B.V. // Cura is released under the terms of the LGPLv3 or higher. import QtQuick 2.2 @@ -11,7 +11,6 @@ Menu { title: catalog.i18nc("@title:menu menubar:toplevel", "&View"); id: base - enabled: !PrintInformation.preSliced property var multiBuildPlateModel: CuraApplication.getMultiBuildPlateModel() @@ -26,6 +25,7 @@ Menu checked: model.active exclusiveGroup: group onTriggered: UM.Controller.setActiveView(model.id) + enabled: !PrintInformation.preSliced } onObjectAdded: base.insertItem(index, object) onObjectRemoved: base.removeItem(object)