From cc0ea7f37a47e74c6134c3fc35089165e0793ccb Mon Sep 17 00:00:00 2001 From: Ly-sec Date: Wed, 13 Aug 2025 11:37:36 +0200 Subject: [PATCH] Conditional Overview.qml loading --- Modules/Background/Overview.qml | 19 ++++++++++++++++--- 1 file changed, 16 insertions(+), 3 deletions(-) diff --git a/Modules/Background/Overview.qml b/Modules/Background/Overview.qml index 1f64f7c..3a6f05c 100644 --- a/Modules/Background/Overview.qml +++ b/Modules/Background/Overview.qml @@ -3,11 +3,23 @@ import QtQuick.Effects import Quickshell import Quickshell.Wayland import qs.Services +import qs.Widgets -Variants { - model: Quickshell.screens +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 - delegate: PanelWindow { + delegate: PanelWindow { required property ShellScreen modelData property string wallpaperSource: Wallpapers.currentWallpaper !== "" && !Settings.data.wallpaper.swww.enabled ? Wallpapers.currentWallpaper : "" @@ -53,4 +65,5 @@ Variants { color: Qt.rgba(Colors.backgroundPrimary.r, Colors.backgroundPrimary.g, Colors.backgroundPrimary.b, 0.5) } } + } }