mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-13 03:09:04 +08:00
Don't switch away from disabled extruder
In some situations this could cause a slowdown, since halfway through calculating the values the extruder switch would happen. If this is split up a bit, it's at least less noticeable Contributes to #8250
This commit is contained in:
parent
c383fe9656
commit
6dbdee8d98
@ -984,10 +984,6 @@ class MachineManager(QObject):
|
|||||||
self.updateNumberExtrudersEnabled()
|
self.updateNumberExtrudersEnabled()
|
||||||
self.correctExtruderSettings()
|
self.correctExtruderSettings()
|
||||||
|
|
||||||
# In case this extruder is being disabled and it's the currently selected one, switch to the default extruder
|
|
||||||
if not enabled and position == ExtruderManager.getInstance().activeExtruderIndex:
|
|
||||||
ExtruderManager.getInstance().setActiveExtruderIndex(int(self._default_extruder_position))
|
|
||||||
|
|
||||||
# Ensure that the quality profile is compatible with current combination, or choose a compatible one if available
|
# Ensure that the quality profile is compatible with current combination, or choose a compatible one if available
|
||||||
self._updateQualityWithMaterial()
|
self._updateQualityWithMaterial()
|
||||||
self.extruderChanged.emit()
|
self.extruderChanged.emit()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user