mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-11 01:19:01 +08:00
Remove unnecessary updateMaterialForDiameter()
CURA-5327
This commit is contained in:
parent
8ea3c879f4
commit
c779795618
@ -552,15 +552,6 @@ class ExtruderManager(QObject):
|
||||
def getInstanceExtruderValues(self, 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.
|
||||
#
|
||||
# This is exposed to SettingFunction to use in value functions.
|
||||
|
@ -158,4 +158,4 @@ class MachineSettingsAction(MachineAction):
|
||||
@pyqtSlot(int)
|
||||
def updateMaterialForDiameter(self, extruder_position: int):
|
||||
# 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…
x
Reference in New Issue
Block a user