Browse Source

Fix selecting printer in monitor page

CURA-9940
c.lamboo 2 years ago
parent
commit
e60b96ac9a
1 changed files with 9 additions and 1 deletions
  1. 9 1
      plugins/MonitorStage/MonitorMenu.qml

+ 9 - 1
plugins/MonitorStage/MonitorMenu.qml

@@ -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);
+        }
     }
 }