Browse Source

Let header listen to activeStageId instead of the model

CURA-6028
Jaime van Kessel 6 years ago
parent
commit
a1a9b058f5
1 changed files with 2 additions and 1 deletions
  1. 2 1
      resources/qml/MainWindow/MainWindowHeader.qml

+ 2 - 1
resources/qml/MainWindow/MainWindowHeader.qml

@@ -54,7 +54,8 @@ Item
             {
                 text: model.name.toUpperCase()
                 checkable: true
-                checked: model.active
+                checked: model.id == UM.Controller.activeStage.stageId
+
                 anchors.verticalCenter: parent.verticalCenter
                 exclusiveGroup: mainWindowHeaderMenuGroup
                 style: UM.Theme.styles.main_window_header_tab