Fix always creating a new scene on app launch
This commit is contained in:
parent
14dca95610
commit
1e7e8b7f85
|
@ -186,7 +186,7 @@ class SceneDelegate: UIResponder, UIWindowSceneDelegate {
|
|||
// todo: why the fuck doesn't this work
|
||||
// it always picks the most recently focused window
|
||||
scene.activationConditions.prefersToActivateForTargetContentIdentifierPredicate = NSPredicate(format: "self == '\(account.id.base64EncodedString())'")
|
||||
scene.activationConditions.canActivateForTargetContentIdentifierPredicate = NSPredicate(value: false)
|
||||
scene.activationConditions.canActivateForTargetContentIdentifierPredicate = NSPredicate(value: true)
|
||||
}
|
||||
|
||||
private func syncFromServer() {
|
||||
|
|
Loading…
Reference in New Issue