1
0
mirror of https://github.com/AvengeMedia/DankMaterialShell.git synced 2026-05-09 14:02:10 -04:00

fix(DockContextMenu): Restore jump windows

This commit is contained in:
purian23
2026-05-09 01:54:23 -04:00
parent b75453c7d6
commit cf641b4e08

View File

@@ -27,16 +27,7 @@ DockContextMenuBase {
model: {
if (!root.appData || root.appData.type !== "grouped")
return [];
const toplevels = [];
const allToplevels = ToplevelManager.toplevels.values;
for (let i = 0; i < allToplevels.length; i++) {
const toplevel = allToplevels[i];
if (toplevel.appId === root.appData.appId) {
toplevels.push(toplevel);
}
}
return toplevels;
return (root.appData.allWindows || []).map(w => w.toplevel).filter(t => t != null);
}
Rectangle {