window title width fixed

This commit is contained in:
Zacharias-Brohn
2026-03-03 19:27:45 +01:00
parent d6ce5af55c
commit 9c8c48c5ee
-1
View File
@@ -14,7 +14,6 @@ Item {
// readonly property int maxWidth: 300
readonly property int maxWidth: {
const otherModules = bar.children.filter(c => c.enabled && c.id && c.item !== this && c.id !== "spacer");
otherModules.forEach(m => console.log(m.id, m.item));
const otherWidth = otherModules.reduce((acc, curr) => {
return acc + (curr.item?.nonAnimWidth ?? curr.width ?? 0);
}, 0);