Fix always creating a new scene on app launch

This commit is contained in:
Shadowfacts 2022-06-19 23:25:02 -04:00
parent 14dca95610
commit 1e7e8b7f85
1 changed files with 1 additions and 1 deletions

View File

@ -186,7 +186,7 @@ class SceneDelegate: UIResponder, UIWindowSceneDelegate {
// todo: why the fuck doesn't this work // todo: why the fuck doesn't this work
// it always picks the most recently focused window // it always picks the most recently focused window
scene.activationConditions.prefersToActivateForTargetContentIdentifierPredicate = NSPredicate(format: "self == '\(account.id.base64EncodedString())'") scene.activationConditions.prefersToActivateForTargetContentIdentifierPredicate = NSPredicate(format: "self == '\(account.id.base64EncodedString())'")
scene.activationConditions.canActivateForTargetContentIdentifierPredicate = NSPredicate(value: false) scene.activationConditions.canActivateForTargetContentIdentifierPredicate = NSPredicate(value: true)
} }
private func syncFromServer() { private func syncFromServer() {