fix: hide battery pill and brightness slider if features are not available
This commit is contained in:
parent
603e1c09b3
commit
2ca8381987
2 changed files with 2 additions and 1 deletions
|
@ -123,6 +123,7 @@ PanelWindow {
|
||||||
|
|
||||||
Text {
|
Text {
|
||||||
text: "brightness"
|
text: "brightness"
|
||||||
|
visible: NyshState.binBrightnessctl
|
||||||
}
|
}
|
||||||
|
|
||||||
Slider {
|
Slider {
|
||||||
|
|
|
@ -4,7 +4,7 @@ import QtQuick
|
||||||
import QtQuick.Layouts
|
import QtQuick.Layouts
|
||||||
|
|
||||||
BRectangle {
|
BRectangle {
|
||||||
visible: UPower.displayDevice != null
|
visible: UPower.displayDevice.ready
|
||||||
height: width * 2
|
height: width * 2
|
||||||
|
|
||||||
Rectangle {
|
Rectangle {
|
||||||
|
|
Loading…
Add table
Reference in a new issue