fix(stores): show the itch.io browse grid on the default filters

This commit is contained in:
FX192 committed 2026-11-20 09:01:42 +03:00
1 parent fccd13689c
commit 37cf698af2
2 files changed
+3 -5

No files matched your search

@@ -129,8 +129,6 @@ internal object ItchBrowseState {
private var next = 1
private var generation = 0
val active: Boolean get() = !query.isDefault
fun choose(context: Context, wanted: BrowseQuery) {
if (wanted == query) return
generation++
@@ -140,11 +138,11 @@ internal object ItchBrowseState {
failed = false
loading = false
next = 1
if (active) more(context)
more(context)
}
fun more(context: Context, retry: Boolean = false) {
if (loading || ended || !active || (failed && !retry)) return
if (loading || ended || (failed && !retry)) return
loading = true
failed = false
val app = context.applicationContext
@@ -665,7 +665,7 @@ private fun Storefront(
LaunchedEffect(store, q) { StoresState.search(ctx, store, q) }
val gameJolt = store == Store.GAMEJOLT
LaunchedEffect(gameJolt, s.storesShowMature) { if (gameJolt) GameJoltBrowseState.sync(ctx, s.storesShowMature) }
val browsing = q.isEmpty() && ((store == Store.ITCH && ItchBrowseState.active) || gameJolt)
val browsing = q.isEmpty() && (store == Store.ITCH || gameJolt)
val browseItems = if (!browsing) emptyList() else if (gameJolt) GameJoltBrowseState.items else ItchBrowseState.items
val catalog = store == Store.BATTLENET && q.isEmpty()
val visible = remember(found, library, shelves, q, s.storesShowMature, browsing, browseItems, catalog) {