Make it so if a category is selected, it'll only show the versions from that category

This commit is contained in:
2026-02-10 16:02:11 -07:00
parent 51cd3c3620
commit 4a96911885

View File

@@ -101,6 +101,7 @@ export default function RootLayout ({
return false return false
if (game && v.game != game) return false if (game && v.game != game) return false
if (category != -1 && v.category != category) return false
if (downloadProgress.length != 0) { if (downloadProgress.length != 0) {
return !downloadProgress.some(d => d.version === v.id) return !downloadProgress.some(d => d.version === v.id)
} }