mirror of
https://github.com/zoriya/noctalia-shell.git
synced 2026-06-01 01:59:47 +00:00
ActiveWindow: more cleanup
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user