mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-06 22:47:29 -06:00
WIP: Fix null warning in SettingsMenu.qml
This commit is contained in:
parent
a106a9ddb9
commit
f810f94b8a
1 changed files with 3 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue