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: "brightness"
|
||||
visible: NyshState.binBrightnessctl
|
||||
}
|
||||
|
||||
Slider {
|
||||
|
|
|
@ -4,7 +4,7 @@ import QtQuick
|
|||
import QtQuick.Layouts
|
||||
|
||||
BRectangle {
|
||||
visible: UPower.displayDevice != null
|
||||
visible: UPower.displayDevice.ready
|
||||
height: width * 2
|
||||
|
||||
Rectangle {
|
||||
|
|
Loading…
Add table
Reference in a new issue