From ada614e413dbaaa9b40bd60ca58c2c0ebd59bb12 Mon Sep 17 00:00:00 2001 From: Arjen Hiemstra Date: Mon, 24 Apr 2017 17:11:37 +0200 Subject: [PATCH] Workaround a tiny display issue with checkable MenuItems If there are no changes to make, we still need to reset the selected extruders. This is a workaround for checked menu items being deselected while they actually should still be selected. Contributes to CURA-3609 --- cura/CuraActions.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/cura/CuraActions.py b/cura/CuraActions.py index 64db7c9372..eeebd3b6b2 100644 --- a/cura/CuraActions.py +++ b/cura/CuraActions.py @@ -17,6 +17,7 @@ from UM.Operations.SetTransformOperation import SetTransformOperation from cura.SetParentOperation import SetParentOperation from cura.MultiplyObjectsJob import MultiplyObjectsJob from cura.Settings.SetObjectExtruderOperation import SetObjectExtruderOperation +from cura.Settings.ExtruderManager import ExtruderManager class CuraActions(QObject): def __init__(self, parent = None): @@ -104,6 +105,10 @@ class CuraActions(QObject): nodes_to_change.append(node) if not nodes_to_change: + # If there are no changes to make, we still need to reset the selected extruders. + # This is a workaround for checked menu items being deselected while still being + # selected. + ExtruderManager.getInstance().resetSelectedObjectExtruders() return for node in nodes_to_change: