forked from Berry-Dash/launcher
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:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user