mirror of
https://github.com/Ranchero-Software/NetNewsWire.git
synced 2025-01-11 09:14:06 +01:00
Fix bug looking up accounts.
This commit is contained in:
parent
ab651398cd
commit
1265351712
@ -62,7 +62,7 @@ extension NSApplication : ScriptingObjectContainer {
|
|||||||
|
|
||||||
@objc(valueInAccountsWithUniqueID:)
|
@objc(valueInAccountsWithUniqueID:)
|
||||||
func valueInAccounts(withUniqueID id:String) -> ScriptableAccount? {
|
func valueInAccounts(withUniqueID id:String) -> ScriptableAccount? {
|
||||||
let accounts = AccountManager.shared.activeAccounts
|
let accounts = AccountManager.shared.accounts
|
||||||
guard let account = accounts.first(where:{$0.accountID == id}) else { return nil }
|
guard let account = accounts.first(where:{$0.accountID == id}) else { return nil }
|
||||||
return ScriptableAccount(account)
|
return ScriptableAccount(account)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user