From cb630a9d57b0f0620cfa9119202c93e69d63f7bb Mon Sep 17 00:00:00 2001 From: Lncvrt Date: Sat, 27 Dec 2025 20:42:46 -0700 Subject: [PATCH] Fix a bug allowing you to do something that isn't normally allowed in popup (it doesn't matter much but it's a bug stil) --- src/app/layout.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app/layout.tsx b/src/app/layout.tsx index d58ea1a..c5b602e 100644 --- a/src/app/layout.tsx +++ b/src/app/layout.tsx @@ -438,7 +438,7 @@ export default function RootLayout ({ tabIndex={0} onKeyDown={e => { if (showPopup && e.key === 'Escape') { - if (popupMode == 0 && selectedGame) { + if (popupMode == 0 && selectedGame && pathname === '/') { setSelectedGame(null) setSelectedVersionList([]) } else if (viewingInfoFromDownloads) {