fix: hide battery pill and brightness slider if features are not available

This commit is contained in:
nydragon 2025-02-10 18:37:56 +01:00
parent 603e1c09b3
commit 2ca8381987
Signed by: nydragon
SSH key fingerprint: SHA256:WcjW5NJPQ8Dx4uQDmoIlVPLWE27Od3fxoe0IUvuoPHE
2 changed files with 2 additions and 1 deletions

View file

@ -123,6 +123,7 @@ PanelWindow {
Text {
text: "brightness"
visible: NyshState.binBrightnessctl
}
Slider {

View file

@ -4,7 +4,7 @@ import QtQuick
import QtQuick.Layouts
BRectangle {
visible: UPower.displayDevice != null
visible: UPower.displayDevice.ready
height: width * 2
Rectangle {