mirror of
https://github.com/SideStore/SideStore.git
synced 2026-02-15 17:53:31 +01:00
[AltStoreCore] Renames PatreonAccount.isPatron to isAltStorePatron
This commit is contained in:
@@ -139,7 +139,7 @@ private extension PatreonViewController
|
|||||||
headerView.accountButton.addTarget(self, action: #selector(PatreonViewController.signOut(_:)), for: .primaryActionTriggered)
|
headerView.accountButton.addTarget(self, action: #selector(PatreonViewController.signOut(_:)), for: .primaryActionTriggered)
|
||||||
headerView.accountButton.setTitle(String(format: NSLocalizedString("Unlink %@", comment: ""), account.name), for: .normal)
|
headerView.accountButton.setTitle(String(format: NSLocalizedString("Unlink %@", comment: ""), account.name), for: .normal)
|
||||||
|
|
||||||
if account.isPatron
|
if account.isAltStorePatron
|
||||||
{
|
{
|
||||||
headerView.supportButton.setTitle(isPatronSupportButtonTitle, for: .normal)
|
headerView.supportButton.setTitle(isPatronSupportButtonTitle, for: .normal)
|
||||||
|
|
||||||
|
|||||||
@@ -16,7 +16,8 @@ public class PatreonAccount: NSManagedObject, Fetchable
|
|||||||
@NSManaged public var name: String
|
@NSManaged public var name: String
|
||||||
@NSManaged public var firstName: String?
|
@NSManaged public var firstName: String?
|
||||||
|
|
||||||
@NSManaged public var isPatron: Bool
|
// Use `isPatron` for backwards compatibility.
|
||||||
|
@NSManaged @objc(isPatron) public var isAltStorePatron: Bool
|
||||||
|
|
||||||
/* Relationships */
|
/* Relationships */
|
||||||
@nonobjc public var pledges: Set<Pledge> { _pledges as! Set<Pledge> }
|
@nonobjc public var pledges: Set<Pledge> { _pledges as! Set<Pledge> }
|
||||||
|
|||||||
Reference in New Issue
Block a user