Function name changed to make it a bit generic

CURA-11138
This commit is contained in:
saumya.jain 2023-10-31 11:48:44 +01:00
parent 1a139f44bc
commit ce132e4c3f
3 changed files with 8 additions and 8 deletions

View file

@ -40,11 +40,11 @@ class ExtruderConfigurationModel(QObject):
def setHotendID(self, hotend_id: Optional[str]) -> None:
if self._hotend_id != hotend_id:
self._hotend_id = ExtruderConfigurationModel.getHotendIdIfMakerbot(hotend_id)
self._hotend_id = ExtruderConfigurationModel.applyNameMappingHotend(hotend_id)
self.extruderConfigurationChanged.emit()
@staticmethod
def getHotendIdIfMakerbot(hotendId) -> str:
def applyNameMappingHotend(hotendId) -> str:
_EXTRUDER_NAME_MAP = {
"mk14_hot":"1XA",
"mk14_hot_s":"2XA",