mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-24 15:13:56 -06:00
crash while opening printer setting
It happened because of creating MachineActionManager as a singleton. Code is refractored to make it work. CURA-11558
This commit is contained in:
parent
d490effcbd
commit
3fc859c76b
2 changed files with 10 additions and 11 deletions
|
@ -12,7 +12,7 @@ import Cura 1.0 as Cura
|
|||
UM.ManagementPage
|
||||
{
|
||||
id: base
|
||||
property var machineActionManager: CuraApplication.getMachineActionManagerQml()
|
||||
property var machineActionManager: CuraApplication.getMachineActionManager()
|
||||
Item { enabled: false; UM.I18nCatalog { id: catalog; name: "cura"} }
|
||||
|
||||
title: catalog.i18nc("@title:tab", "Printers")
|
||||
|
@ -63,7 +63,7 @@ UM.ManagementPage
|
|||
Repeater
|
||||
{
|
||||
id: machineActionRepeater
|
||||
model: base.currentItem ? machineActionManager.getSupportedActions(Cura.MachineManager.getDefinitionByMachineId(base.currentItem.id)) : null
|
||||
model: base.currentItem.id ? machineActionManager.getSupportedActions(Cura.MachineManager.getDefinitionByMachineId(base.currentItem.id)) : null
|
||||
|
||||
Item
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue