From 1e7e8b7f85e0aa5095513afc64d4a2e9c77773cd Mon Sep 17 00:00:00 2001 From: Shadowfacts Date: Sun, 19 Jun 2022 23:25:02 -0400 Subject: [PATCH] Fix always creating a new scene on app launch --- Reader/SceneDelegate.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Reader/SceneDelegate.swift b/Reader/SceneDelegate.swift index e77a04b..8701db9 100644 --- a/Reader/SceneDelegate.swift +++ b/Reader/SceneDelegate.swift @@ -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() {