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)

This commit is contained in:
2025-12-27 20:42:46 -07:00
parent 6ec7e8df82
commit cb630a9d57

View File

@@ -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) {