Fix selecting printer in monitor page

CURA-9940
This commit is contained in:
c.lamboo 2022-11-30 15:42:43 +01:00
parent 8ce2af290c
commit e60b96ac9a

View File

@ -1,4 +1,4 @@
// Copyright (c) 2018 Ultimaker B.V.
// Copyright (c) 2022 UltiMaker
// Cura is released under the terms of the LGPLv3 or higher.
import QtQuick 2.7
@ -21,5 +21,13 @@ Item
anchors.centerIn: parent
machineListModel: Cura.MachineListModel {}
machineManager: Cura.MachineManager
onSelectPrinter: function(machine)
{
toggleContent();
Cura.MachineManager.setActiveMachine(machine.id);
}
}
}