fix: select close current app by default in system menu

This commit is contained in:
Blendman974 committed 2026-11-06 06:05:31 +01:00
1 parent 55bd5f891c
commit cfda10d47f
3 files changed
+9 -10

No files matched your search

+2 -3
View File
@@ -1957,9 +1957,8 @@ class Shell {
},
});
}
// Close current app sits first but the menu opens on Focus app switcher, so a
// reflexive tap never closes the window.
const initialSelection = items.length;
// Prefer closing the current app; pinned windows fall back to the switcher.
const initialSelection = 0;
items.push(
{
// Defocus the app (hand focus to the sidebar) without closing it: the