mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-05-31 02:25:57 +08:00
Remove action for multiextruder printers and printers that use variants
(for now)
This commit is contained in:
parent
3f56685acc
commit
2d77fefdb0
@ -37,6 +37,13 @@ class MachineSettingsAction(MachineAction):
|
|||||||
def _onContainerAdded(self, container):
|
def _onContainerAdded(self, container):
|
||||||
# Add this action as a supported action to all machine definitions
|
# Add this action as a supported action to all machine definitions
|
||||||
if isinstance(container, UM.Settings.DefinitionContainer) and container.getMetaDataEntry("type") == "machine":
|
if isinstance(container, UM.Settings.DefinitionContainer) and container.getMetaDataEntry("type") == "machine":
|
||||||
|
if container.getProperty("machine_extruder_count", "value") > 1:
|
||||||
|
# Multiextruder printers are not currently supported
|
||||||
|
return
|
||||||
|
if container.getMetaDataEntry("has_variants", False):
|
||||||
|
# Machines that use variants are not currently supported
|
||||||
|
return
|
||||||
|
|
||||||
UM.Application.getInstance().getMachineActionManager().addSupportedAction(container.getId(), self.getKey())
|
UM.Application.getInstance().getMachineActionManager().addSupportedAction(container.getId(), self.getKey())
|
||||||
|
|
||||||
@pyqtSlot()
|
@pyqtSlot()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user