forked from Shinonome/dots-hyprland
make background widget loader async
This commit is contained in:
@@ -56,11 +56,11 @@ Scope {
|
|||||||
Variants { // For each monitor
|
Variants { // For each monitor
|
||||||
model: Quickshell.screens
|
model: Quickshell.screens
|
||||||
|
|
||||||
Loader {
|
LazyLoader {
|
||||||
required property var modelData
|
required property var modelData
|
||||||
readonly property HyprlandMonitor monitor: Hyprland.monitorFor(modelData)
|
readonly property HyprlandMonitor monitor: Hyprland.monitorFor(modelData)
|
||||||
active: !ToplevelManager.activeToplevel?.activated
|
activeAsync: !ToplevelManager.activeToplevel?.activated
|
||||||
sourceComponent: PanelWindow { // Window
|
component: PanelWindow { // Window
|
||||||
id: windowRoot
|
id: windowRoot
|
||||||
screen: modelData
|
screen: modelData
|
||||||
property var textHorizontalAlignment: root.centerX / monitor.scale < windowRoot.width / 3 ? Text.AlignLeft :
|
property var textHorizontalAlignment: root.centerX / monitor.scale < windowRoot.width / 3 ? Text.AlignLeft :
|
||||||
|
|||||||
Reference in New Issue
Block a user