feat: add IdleState reference in Bar.qml to give it a valid Window to be able to inhibit idle

This commit is contained in:
Hannes
2026-08-24 23:38:44 +02:00
parent c77020dc69
commit 5b23111eb3
+6 -1
View File
@@ -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{}
}