fix: Only allow double-tap account toggle if more than 1 account exists
This commit is contained in:
parent
26576d888e
commit
634796e9dc
|
@ -407,7 +407,7 @@ extension MainTabBarController {
|
|||
assert(Thread.isMainThread)
|
||||
|
||||
let request = MastodonAuthentication.sortedFetchRequest
|
||||
guard let accounts = try? context.managedObjectContext.fetch(request) else { return }
|
||||
guard let accounts = try? context.managedObjectContext.fetch(request), accounts.count > 1 else { return }
|
||||
|
||||
let nextSelectedAccountIndex: Int? = {
|
||||
for (index, account) in accounts.enumerated() {
|
||||
|
|
Loading…
Reference in New Issue