Conditional Overview.qml loading
This commit is contained in:
parent
f2b7bd04db
commit
cc0ea7f37a
1 changed files with 16 additions and 3 deletions
|
|
@ -3,8 +3,20 @@ import QtQuick.Effects
|
||||||
import Quickshell
|
import Quickshell
|
||||||
import Quickshell.Wayland
|
import Quickshell.Wayland
|
||||||
import qs.Services
|
import qs.Services
|
||||||
|
import qs.Widgets
|
||||||
|
|
||||||
Variants {
|
NLoader {
|
||||||
|
active: Workspaces.isNiri
|
||||||
|
|
||||||
|
Component.onCompleted: {
|
||||||
|
if (Workspaces.isNiri) {
|
||||||
|
console.log("[Overview] Loading Overview component (Niri detected)")
|
||||||
|
} else {
|
||||||
|
console.log("[Overview] Skipping Overview component (Niri not detected)")
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
sourceComponent: Variants {
|
||||||
model: Quickshell.screens
|
model: Quickshell.screens
|
||||||
|
|
||||||
delegate: PanelWindow {
|
delegate: PanelWindow {
|
||||||
|
|
@ -54,3 +66,4 @@ Variants {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue