From 29627504cc3784167117f1c567e7ab76eba7f7d7 Mon Sep 17 00:00:00 2001 From: Riley Testut Date: Wed, 6 Dec 2023 14:58:18 -0600 Subject: [PATCH] =?UTF-8?q?Shows=20=E2=80=9CPledge=20Expired=E2=80=9D=20fo?= =?UTF-8?q?r=20installed=20Patreon=20apps=20without=20active=20pledge?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- AltStore/Components/AppBannerView.swift | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/AltStore/Components/AppBannerView.swift b/AltStore/Components/AppBannerView.swift index 92f03298..f4d9b3d1 100644 --- a/AltStore/Components/AppBannerView.swift +++ b/AltStore/Components/AppBannerView.swift @@ -171,7 +171,19 @@ extension AppBannerView { // Always show button label for Patreon apps. self.buttonLabel.isHidden = false - self.buttonLabel.text = storeApp.isPledged ? NSLocalizedString("Pledged", comment: "") : NSLocalizedString("Join Patreon", comment: "") + + if storeApp.isPledged + { + self.buttonLabel.text = NSLocalizedString("Pledged", comment: "") + } + else if storeApp.installedApp != nil + { + self.buttonLabel.text = NSLocalizedString("Pledge Expired", comment: "") + } + else + { + self.buttonLabel.text = NSLocalizedString("Join Patreon", comment: "") + } } else {