[AltStoreCore] Renames PatreonAccount.isPatron to isAltStorePatron

This commit is contained in:
Riley Testut
2023-11-29 17:47:17 -06:00
committed by Magesh K
parent 9f7f73f835
commit aa9fda7a97
2 changed files with 3 additions and 2 deletions

View File

@@ -139,7 +139,7 @@ private extension PatreonViewController
headerView.accountButton.addTarget(self, action: #selector(PatreonViewController.signOut(_:)), for: .primaryActionTriggered)
headerView.accountButton.setTitle(String(format: NSLocalizedString("Unlink %@", comment: ""), account.name), for: .normal)
if account.isPatron
if account.isAltStorePatron
{
headerView.supportButton.setTitle(isPatronSupportButtonTitle, for: .normal)

View File

@@ -16,7 +16,8 @@ public class PatreonAccount: NSManagedObject, Fetchable
@NSManaged public var name: String
@NSManaged public var firstName: String?
@NSManaged public var isPatron: Bool
// Use `isPatron` for backwards compatibility.
@NSManaged @objc(isPatron) public var isAltStorePatron: Bool
/* Relationships */
@nonobjc public var pledges: Set<Pledge> { _pledges as! Set<Pledge> }