diff --git a/quickshell/DMSShellIPC.qml b/quickshell/DMSShellIPC.qml index 174396802..f8c264d1d 100644 --- a/quickshell/DMSShellIPC.qml +++ b/quickshell/DMSShellIPC.qml @@ -1206,9 +1206,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 {