mirror of
https://github.com/SideStore/SideStore.git
synced 2026-02-09 06:43:25 +01:00
Shows “Pledge Expired” for installed Patreon apps without active pledge
This commit is contained in:
@@ -171,7 +171,19 @@ extension AppBannerView
|
|||||||
{
|
{
|
||||||
// Always show button label for Patreon apps.
|
// Always show button label for Patreon apps.
|
||||||
self.buttonLabel.isHidden = false
|
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
|
else
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user