mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-06 22:47:29 -06:00
Remove unnecessary updateMaterialForDiameter()
CURA-5327
This commit is contained in:
parent
8ea3c879f4
commit
c779795618
2 changed files with 1 additions and 10 deletions
|
@ -552,15 +552,6 @@ class ExtruderManager(QObject):
|
||||||
def getInstanceExtruderValues(self, key):
|
def getInstanceExtruderValues(self, key):
|
||||||
return ExtruderManager.getExtruderValues(key)
|
return ExtruderManager.getExtruderValues(key)
|
||||||
|
|
||||||
## Updates the material container to a material that matches the material diameter set for the printer
|
|
||||||
def updateMaterialForDiameter(self, extruder_position: int, global_stack = None):
|
|
||||||
if not global_stack:
|
|
||||||
global_stack = Application.getInstance().getGlobalContainerStack()
|
|
||||||
if not global_stack:
|
|
||||||
return
|
|
||||||
|
|
||||||
Application.getInstance().getMachineManager()._updateMaterialWithVariant(extruder_position)
|
|
||||||
|
|
||||||
## Get the value for a setting from a specific extruder.
|
## Get the value for a setting from a specific extruder.
|
||||||
#
|
#
|
||||||
# This is exposed to SettingFunction to use in value functions.
|
# This is exposed to SettingFunction to use in value functions.
|
||||||
|
|
|
@ -158,4 +158,4 @@ class MachineSettingsAction(MachineAction):
|
||||||
@pyqtSlot(int)
|
@pyqtSlot(int)
|
||||||
def updateMaterialForDiameter(self, extruder_position: int):
|
def updateMaterialForDiameter(self, extruder_position: int):
|
||||||
# Updates the material container to a material that matches the material diameter set for the printer
|
# Updates the material container to a material that matches the material diameter set for the printer
|
||||||
self._application.getExtruderManager().updateMaterialForDiameter(extruder_position)
|
self._application.getMachineManager()._updateMaterialWithVariant(extruder_position)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue