From 4538ecea06dbd8fbcb69e2166efbc8636e9321d8 Mon Sep 17 00:00:00 2001 From: Pierre Kisters <1524059+lhns@users.noreply.github.com> Date: Thu, 1 Oct 2026 04:07:19 +0200 Subject: [PATCH] VR "+" menu grid: a popup whose window throws no longer stops the scan p.window was read outside the guard, so an exception there ended the 1 s scan for the remaining popups (pinned-desktop already guards it). --- modules/launcher-menu/grid/patch.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/launcher-menu/grid/patch.js b/modules/launcher-menu/grid/patch.js index 274ae04..130bbb1 100644 --- a/modules/launcher-menu/grid/patch.js +++ b/modules/launcher-menu/grid/patch.js @@ -23,7 +23,7 @@ // unpatch.js (or a new VERSION/options) calls __sfuiLauncherGrid.stop(). ((find, sigs, opts) => { const NAME = 'launcher-menu-grid'; - const VERSION = 7; + const VERSION = 8; const COLS = opts.columns; const ROWS = opts.maxRows ?? null; if (!(Number.isInteger(COLS) && COLS >= 1) || !(ROWS === null || (Number.isInteger(ROWS) && ROWS >= 1))) @@ -276,7 +276,7 @@ ${PINNED} > [role=button] * { flex-grow: 0 !important; text-align: center !impor const scan = () => { for (const [d, o] of docs) if (!d.defaultView || d.defaultView.closed) detach(d, o); for (const p of g_PopupManager.GetPopups()) - if (/barpopup/.test(p.m_strName ?? '')) guard(attach)(p.window?.document); + if (/barpopup/.test(p.m_strName ?? '')) guard(() => attach(p.window?.document))(); }; const timer = setInterval(scan, 1000);