Possible fix for QS crash on single monitor wake
This commit is contained in:
parent
aed728ec9c
commit
88447fbcef
7 changed files with 70 additions and 25 deletions
|
|
@ -49,13 +49,7 @@ Row {
|
|||
if (!focusedWindow || !focusedWindow.appId)
|
||||
return ""
|
||||
|
||||
// DesktopEntries.byId may return null for unknown apps; guard accordingly
|
||||
if (typeof DesktopEntries === 'undefined' || !DesktopEntries.byId)
|
||||
return ""
|
||||
const entry = DesktopEntries.byId(focusedWindow.appId)
|
||||
const iconName = entry && entry.icon ? entry.icon : ""
|
||||
const iconPath = iconName ? Quickshell.iconPath(iconName) : ""
|
||||
return iconPath || ""
|
||||
return Icons.iconForAppId(focusedWindow.appId)
|
||||
}
|
||||
|
||||
// A hidden text element to safely measure the full title width
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue