mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-05-02 16:54:23 +08:00
Add comment
CURA-8254
This commit is contained in:
parent
8157cedfef
commit
bdbac23fdf
@ -73,6 +73,8 @@ class MaterialManagementModel(QObject):
|
|||||||
button_style = Message.ActionButtonStyle.LINK
|
button_style = Message.ActionButtonStyle.LINK
|
||||||
)
|
)
|
||||||
sync_materials_message.actionTriggered.connect(self._onSyncMaterialsMessageActionTriggered)
|
sync_materials_message.actionTriggered.connect(self._onSyncMaterialsMessageActionTriggered)
|
||||||
|
|
||||||
|
# Show the message only if there are printers that support material export
|
||||||
container_registry = cura.CuraApplication.CuraApplication.getInstance().getContainerRegistry()
|
container_registry = cura.CuraApplication.CuraApplication.getInstance().getContainerRegistry()
|
||||||
global_stacks = container_registry.findContainerStacks(type = "machine")
|
global_stacks = container_registry.findContainerStacks(type = "machine")
|
||||||
if any([stack.supportsMaterialExport for stack in global_stacks]):
|
if any([stack.supportsMaterialExport for stack in global_stacks]):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user