ActiveWindow: more cleanup

This commit is contained in:
ItsLemmy
2025-09-22 17:37:34 -04:00
parent 4c9d40865f
commit 21d331c232
2 changed files with 2 additions and 5 deletions
+1 -4
View File
@@ -31,10 +31,7 @@ Item {
}
readonly property string windowTitle: CompositorService.getFocusedWindowTitle()
readonly property bool hasActiveWindow: {
const t = (windowTitle || "").trim()
return t.length > 0 && t !== "(No active window)"
}
readonly property bool hasActiveWindow: windowTitle !== ""
readonly property bool showIcon: (widgetSettings.showIcon !== undefined) ? widgetSettings.showIcon : widgetMetadata.showIcon