fix: hide switcher move action for temporary windows
Secret scan / gitleaks (pull_request) Canceled after 0s
Tests / test (pull_request) Canceled after 0s
Tests / test-kotlin (pull_request) Canceled after 0s
Tests / stats-server (pull_request) Canceled after 0s
Tests / evenhub-extensions (pull_request) Canceled after 0s

This commit is contained in:
Blendman974 committed 2026-11-06 06:33:47 +01:00
1 parent c22f2e5f13
commit 8be15d890c
2 files changed
+5 -1

No files matched your search

+2 -1
View File
@@ -1996,7 +1996,8 @@ class Shell {
},
}]),
);
if (foreground.closeable && this.switcherWindows().filter(window => window.closeable).length > 1) {
const movableWindows = this.switcherWindows().filter(window => window.closeable);
if (movableWindows.length > 1 && movableWindows.includes(foreground)) {
items.push({
label: "Move in app switcher",
description: "Choose this open window's position in the app switcher.",
+3
View File
@@ -118,6 +118,9 @@ test('temporary status windows and pinned slots stay fixed, including selected s
assert.deepEqual(h.ids(), ['launcher', 'terminal:two', 'notifications:temporary', 'another-pinned', 'calendar', 'terminal:one']);
assert.equal(h.s.foregroundWindow(), hidden);
assert.equal(h.s.selectedStatus.host, hidden);
h.s.openEscapeMenu();
assert.ok(!h.menu().items.some(item => item.label === 'Move in app switcher'));
h.s.stack.pop();
h.s.openSwitcherMoveMenu(h.first.windowId);
assert.deepEqual(Array.from(h.menu().items, item => item.label), ['1. Terminal', '2. Calendar', '3. Terminal']);
});