diff --git a/quickshell/DMSShellIPC.qml b/quickshell/DMSShellIPC.qml index 3ea4d27ac..69f058ead 100644 --- a/quickshell/DMSShellIPC.qml +++ b/quickshell/DMSShellIPC.qml @@ -1177,9 +1177,9 @@ Item { if (!widget) return `WIDGET_NOT_AVAILABLE: ${widgetId}`; - if (widget.popoutTarget?.shouldBeVisible) - return "visible"; - return "hidden"; + if (!widget.popoutTarget) + return `WIDGET_NO_POPOUT: ${widgetId}`; + return widget.popoutTarget.shouldBeVisible ? "visible" : "hidden"; } function reveal(widgetId: string): string {