From fb476529d20cf61dadea46aa1f17244a403354ea Mon Sep 17 00:00:00 2001 From: Arianrhod Sandlot Date: Tue, 7 Nov 2023 16:04:36 +0800 Subject: [PATCH] fix: fix refreshing after granting local permission --- .../home-screen/error-content/local-file-permision.tsx | 2 +- .../components/routes/library/platform/home-screen/index.tsx | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/views/components/routes/library/platform/home-screen/error-content/local-file-permision.tsx b/src/views/components/routes/library/platform/home-screen/error-content/local-file-permision.tsx index c7b2885..3bb2480 100644 --- a/src/views/components/routes/library/platform/home-screen/error-content/local-file-permision.tsx +++ b/src/views/components/routes/library/platform/home-screen/error-content/local-file-permision.tsx @@ -22,7 +22,7 @@ export function LocalFilePermision({ onSolve }: { onSolve: () => void }) { Grant permission
- +
We have to ask you to grant permission to read your ROMs again, even though you have already done this diff --git a/src/views/components/routes/library/platform/home-screen/index.tsx b/src/views/components/routes/library/platform/home-screen/index.tsx index 82b5e57..9b72f67 100644 --- a/src/views/components/routes/library/platform/home-screen/index.tsx +++ b/src/views/components/routes/library/platform/home-screen/index.tsx @@ -130,10 +130,10 @@ export function HomeScreen() { async function retry() { setIsRetrying(true) - if (platformsState.error) { + if (platformsState.status !== 'success') { await loadPlatformsFromRemote() } - if (romsState.error) { + if (romsState.status !== 'success') { await loadRomsFromRemote() } }