From 70eb1c06ec3402c82473eda2b52381d723282529 Mon Sep 17 00:00:00 2001 From: Chihchy Date: Fri, 4 Nov 2022 10:10:41 +0800 Subject: [PATCH] Fix previews not loading issue --- .github/workflows/deploy.yml | 2 +- EhPanda/View/Detail/PreviewsView.swift | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 512a5aee..ffb0cdb7 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -6,7 +6,7 @@ on: types: [closed] env: DEVELOPER_DIR: /Applications/Xcode_14.1.app - APP_VERSION: '2.4.3' + APP_VERSION: '2.4.4' SCHEME_NAME: 'EhPanda' ALTSTORE_JSON_PATH: './AltStore.json' BUILDS_PATH: '/tmp/action-builds' diff --git a/EhPanda/View/Detail/PreviewsView.swift b/EhPanda/View/Detail/PreviewsView.swift index c0e42173..1611de1f 100644 --- a/EhPanda/View/Detail/PreviewsView.swift +++ b/EhPanda/View/Detail/PreviewsView.swift @@ -56,7 +56,7 @@ struct PreviewsView: View { Text("\(index)").font(DeviceUtil.isPadWidth ? .callout : .caption).foregroundColor(.secondary) } .onAppear { - if viewStore.databaseLoadingState == .loading + if viewStore.databaseLoadingState != .loading && viewStore.previewURLs[index] == nil && (index - 1) % 20 == 0 { viewStore.send(.fetchPreviewURLs(index))