mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-11 15:08:58 +08:00
WIP: Fix null warning in SettingsMenu.qml
This commit is contained in:
parent
a106a9ddb9
commit
f810f94b8a
@ -14,12 +14,14 @@ Menu
|
|||||||
|
|
||||||
PrinterMenu { title: catalog.i18nc("@title:menu menubar:settings", "&Printer") }
|
PrinterMenu { title: catalog.i18nc("@title:menu menubar:settings", "&Printer") }
|
||||||
|
|
||||||
|
property var activeMachine: Cura.MachineManager.activeMachine
|
||||||
|
|
||||||
onAboutToShow: extruderInstantiator.active = true
|
onAboutToShow: extruderInstantiator.active = true
|
||||||
onAboutToHide: extruderInstantiator.active = false
|
onAboutToHide: extruderInstantiator.active = false
|
||||||
Instantiator
|
Instantiator
|
||||||
{
|
{
|
||||||
id: extruderInstantiator
|
id: extruderInstantiator
|
||||||
model: Cura.MachineManager.activeMachine.extruderList
|
model: activeMachine == null ? null : activeMachine.extruderList
|
||||||
active: false
|
active: false
|
||||||
asynchronous: true
|
asynchronous: true
|
||||||
Menu
|
Menu
|
||||||
|
Loading…
x
Reference in New Issue
Block a user