mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-06 22:47:29 -06:00
Function name changed to make it a bit generic
CURA-11138
This commit is contained in:
parent
1a139f44bc
commit
ce132e4c3f
3 changed files with 8 additions and 8 deletions
|
@ -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",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue