From 36ac3af7dc22fad2f2b6a827328ec464720b3261 Mon Sep 17 00:00:00 2001 From: Riley Testut Date: Tue, 5 Dec 2023 15:54:34 -0600 Subject: [PATCH] =?UTF-8?q?Fixes=20showing=20=E2=80=9CUpdate=E2=80=9D=20fo?= =?UTF-8?q?r=20Patreon=20apps=20with=20inactive=20pledges?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- AltStore/Components/AppBannerView.swift | 2 +- AltStoreCore/Model/InstalledApp.swift | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/AltStore/Components/AppBannerView.swift b/AltStore/Components/AppBannerView.swift index 3a42cf39..92f03298 100644 --- a/AltStore/Components/AppBannerView.swift +++ b/AltStore/Components/AppBannerView.swift @@ -221,7 +221,7 @@ extension AppBannerView { // App is installed - if installedApp.isUpdateAvailable && (!storeApp.isPledgeRequired || storeApp.isPledged) + if installedApp.isUpdateAvailable { buttonAction = .update } diff --git a/AltStoreCore/Model/InstalledApp.swift b/AltStoreCore/Model/InstalledApp.swift index c38e62f1..e309cbfc 100644 --- a/AltStoreCore/Model/InstalledApp.swift +++ b/AltStoreCore/Model/InstalledApp.swift @@ -339,6 +339,7 @@ public extension InstalledApp var isUpdateAvailable: Bool { guard let storeApp = self.storeApp, let latestVersion = storeApp.latestSupportedVersion else { return false } + guard !storeApp.isPledgeRequired || storeApp.isPledged else { return false } let isUpdateAvailable = !self.matches(latestVersion) return isUpdateAvailable