mirror of
https://github.com/SideStore/SideStore.git
synced 2026-02-08 22:33:26 +01:00
Fixes showing “Update” for Patreon apps with inactive pledges
This commit is contained in:
@@ -221,7 +221,7 @@ extension AppBannerView
|
||||
{
|
||||
// App is installed
|
||||
|
||||
if installedApp.isUpdateAvailable && (!storeApp.isPledgeRequired || storeApp.isPledged)
|
||||
if installedApp.isUpdateAvailable
|
||||
{
|
||||
buttonAction = .update
|
||||
}
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user