mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-06-04 11:14:21 +08:00
Fix selecting printer in monitor page
CURA-9940
This commit is contained in:
parent
8ce2af290c
commit
e60b96ac9a
@ -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.
|
// Cura is released under the terms of the LGPLv3 or higher.
|
||||||
|
|
||||||
import QtQuick 2.7
|
import QtQuick 2.7
|
||||||
@ -21,5 +21,13 @@ Item
|
|||||||
anchors.centerIn: parent
|
anchors.centerIn: parent
|
||||||
|
|
||||||
machineListModel: Cura.MachineListModel {}
|
machineListModel: Cura.MachineListModel {}
|
||||||
|
|
||||||
|
machineManager: Cura.MachineManager
|
||||||
|
|
||||||
|
onSelectPrinter: function(machine)
|
||||||
|
{
|
||||||
|
toggleContent();
|
||||||
|
Cura.MachineManager.setActiveMachine(machine.id);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
Loading…
x
Reference in New Issue
Block a user