Run post-auth state check with main actor task

Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
This commit is contained in:
Claudio Cambra 2024-10-15 14:21:03 +08:00 committed by backportbot[bot]
parent f3dde1907a
commit 1b75056fb1

View file

@ -145,6 +145,7 @@ extension FileProviderExtension: NSFileProviderServicing, ChangeNotificationInte
) )
} }
Task { @MainActor in
let newNcAccount = let newNcAccount =
Account(user: user, id: userId, serverUrl: serverUrl, password: password) Account(user: user, id: userId, serverUrl: serverUrl, password: password)
guard newNcAccount != ncAccount else { return } guard newNcAccount != ncAccount else { return }
@ -166,6 +167,7 @@ extension FileProviderExtension: NSFileProviderServicing, ChangeNotificationInte
signalEnumeratorAfterAccountSetup() signalEnumeratorAfterAccountSetup()
} }
} }
}
@objc func removeAccountConfig() { @objc func removeAccountConfig() {
Logger.fileProviderExtension.info( Logger.fileProviderExtension.info(