mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-14 02:35:53 +08:00
Remove unused functions in ExtruderManager
This commit is contained in:
parent
7a681a2ae4
commit
3c8368827b
@ -67,16 +67,6 @@ class ExtruderManager(QObject):
|
|||||||
except KeyError: # Extruder index could be -1 if the global tab is selected, or the entry doesn't exist if the machine definition is wrong.
|
except KeyError: # Extruder index could be -1 if the global tab is selected, or the entry doesn't exist if the machine definition is wrong.
|
||||||
return None
|
return None
|
||||||
|
|
||||||
## Return extruder count according to extruder trains.
|
|
||||||
@pyqtProperty(int, notify = extrudersChanged)
|
|
||||||
def extruderCount(self) -> int:
|
|
||||||
if not self._application.getGlobalContainerStack():
|
|
||||||
return 0 # No active machine, so no extruders.
|
|
||||||
try:
|
|
||||||
return len(self._extruder_trains[self._application.getGlobalContainerStack().getId()])
|
|
||||||
except KeyError:
|
|
||||||
return 0
|
|
||||||
|
|
||||||
## Gets a dict with the extruder stack ids with the extruder number as the key.
|
## Gets a dict with the extruder stack ids with the extruder number as the key.
|
||||||
@pyqtProperty("QVariantMap", notify = extrudersChanged)
|
@pyqtProperty("QVariantMap", notify = extrudersChanged)
|
||||||
def extruderIds(self) -> Dict[str, str]:
|
def extruderIds(self) -> Dict[str, str]:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user