mirror of
https://github.com/Ranchero-Software/NetNewsWire.git
synced 2025-01-09 08:23:42 +01:00
Change check to see if any scenes are in the foreground rather than if any scenes are in the background.
This commit is contained in:
parent
910e06cf63
commit
2795de3452
@ -56,7 +56,7 @@ class AppDelegate: UIResponder, UIApplicationDelegate, UNUserNotificationCenterD
|
||||
|
||||
var isAnySceneInForeground: Bool {
|
||||
for scene in UIApplication.shared.connectedScenes {
|
||||
if scene.activationState != .background {
|
||||
if scene.activationState == .foregroundInactive || scene.activationState == .foregroundActive {
|
||||
return true
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user