feat: add IdleState reference in Bar.qml to give it a valid Window to be able to inhibit idle
This commit is contained in:
+6
-1
@@ -2,6 +2,7 @@ import QtQuick
|
||||
import Quickshell
|
||||
import Quickshell.Hyprland
|
||||
import "./widgets"
|
||||
import "./states/Idle"
|
||||
import "../../config"
|
||||
|
||||
PanelWindow {
|
||||
@@ -25,6 +26,10 @@ PanelWindow {
|
||||
right: 0
|
||||
}
|
||||
|
||||
Component.onCompleted: {
|
||||
IdleState.panelWindow = panel
|
||||
}
|
||||
|
||||
Rectangle { // Bar
|
||||
id: bar
|
||||
anchors.fill: parent
|
||||
@@ -72,7 +77,7 @@ PanelWindow {
|
||||
AudioSink{}
|
||||
Battery{}
|
||||
Network{}
|
||||
IdleButton { panelWindow: panel }
|
||||
IdleButton {}
|
||||
PowerButton{}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user