Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/Ultimaker/Cura.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArjen Hiemstra <ahiemstra@heimr.nl>2017-04-24 18:11:37 +0300
committerArjen Hiemstra <ahiemstra@heimr.nl>2017-04-24 18:11:37 +0300
commitada614e413dbaaa9b40bd60ca58c2c0ebd59bb12 (patch)
tree2e98b393490d210c717af9aee3c3b613a4360a9e /cura/CuraActions.py
parent89310cb41e669ff3adad1600e443a90f1a71b97f (diff)
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
Diffstat (limited to 'cura/CuraActions.py')
-rw-r--r--cura/CuraActions.py5
1 files changed, 5 insertions, 0 deletions
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: