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
|
||||||
import Quickshell.Hyprland
|
import Quickshell.Hyprland
|
||||||
import "./widgets"
|
import "./widgets"
|
||||||
|
import "./states/Idle"
|
||||||
import "../../config"
|
import "../../config"
|
||||||
|
|
||||||
PanelWindow {
|
PanelWindow {
|
||||||
@@ -25,6 +26,10 @@ PanelWindow {
|
|||||||
right: 0
|
right: 0
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Component.onCompleted: {
|
||||||
|
IdleState.panelWindow = panel
|
||||||
|
}
|
||||||
|
|
||||||
Rectangle { // Bar
|
Rectangle { // Bar
|
||||||
id: bar
|
id: bar
|
||||||
anchors.fill: parent
|
anchors.fill: parent
|
||||||
@@ -72,7 +77,7 @@ PanelWindow {
|
|||||||
AudioSink{}
|
AudioSink{}
|
||||||
Battery{}
|
Battery{}
|
||||||
Network{}
|
Network{}
|
||||||
IdleButton { panelWindow: panel }
|
IdleButton {}
|
||||||
PowerButton{}
|
PowerButton{}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user