widget-sliders: safeguard Shape

This commit is contained in:
Lemmy
2026-03-05 14:51:58 -05:00
parent baf4971a62
commit a43b944b95
2 changed files with 2 additions and 0 deletions
+1
View File
@@ -93,6 +93,7 @@ Slider {
anchors.centerIn: parent
width: root.trackWidth
height: bgContainer.height
visible: root.trackWidth > 0 && bgContainer.height > 0
preferredRendererType: Shape.CurveRenderer
ShapePath {
+1
View File
@@ -41,6 +41,7 @@ Slider {
// Background track
Shape {
anchors.fill: parent
visible: bgContainer.width > 0 && bgContainer.height > 0
preferredRendererType: Shape.CurveRenderer
ShapePath {