fix(workspace): fix missing icon and broken layout

This commit is contained in:
Lemmy
2026-04-01 19:16:38 -04:00
parent aa12aa91f0
commit ae84393c63
+3 -7
View File
@@ -784,9 +784,8 @@ Item {
readonly property bool winOk: win !== undefined && win !== null
readonly property bool isFocused: winOk && win.isFocused
width: winOk ? root.iconSize : 0
height: winOk ? root.iconSize : 0
visible: winOk
width: root.iconSize
height: root.iconSize
HoverHandler {
id: windowHoverHandler
@@ -800,10 +799,7 @@ Item {
source: {
root.iconRevision; // Force re-evaluation when revision changes
const w = groupedTaskbarItem.win;
if (!w)
return "";
return ThemeIcons.iconForAppId(w.appId?.toLowerCase());
return ThemeIcons.iconForAppId(groupedTaskbarItem.win?.appId?.toLowerCase());
}
smooth: true
asynchronous: true