Browse Source

Fix layer height slider update issue

CURA-4758
Lipu Fei 7 years ago
parent
commit
65e8762546
1 changed files with 12 additions and 0 deletions
  1. 12 0
      resources/qml/SidebarSimple.qml

+ 12 - 0
resources/qml/SidebarSimple.qml

@@ -70,6 +70,18 @@ Item
                     onActiveVariantChanged: qualityModel.update()
                 }
 
+                Connections {
+                    target: base
+                    onVisibleChanged:
+                    {
+                        // update needs to be called when the widgets are visible, otherwise the step width calculation
+                        // will fail because the width of an invisible item is 0.
+                        if (visible) {
+                            qualityModel.update();
+                        }
+                    }
+                }
+
                 ListModel
                 {
                     id: qualityModel