mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-06-04 11:14:21 +08:00
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
This commit is contained in:
parent
89310cb41e
commit
ada614e413
@ -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:
|
||||
|
Loading…
x
Reference in New Issue
Block a user