Commit 525d110b authored by David Redondo's avatar David Redondo 🏎
Browse files

Also show the placeholder if we have fewer than the maximum number of sensors

Prevents the Control from resizing and ensures there's click space also in a
very narrow layout (ksysguardqml) when the face allows two total sensors.
parent 9d79bc0d
......@@ -258,7 +258,11 @@ Control {
}
}
Item { width: Kirigami.Units.iconSizes.smallMedium + Kirigami.Units.smallSpacing * 2; height: width; visible: control.maxAllowedSensors <= 0 }
Item {
width: Kirigami.Units.iconSizes.smallMedium + Kirigami.Units.smallSpacing * 2
height: width
visible: control.maxAllowedSensors <= 0 || control.selected.length < control.maxAllowedSensors
}
}
Popup {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment