From 4564b51b38474291f9bf9932ecc370bedb93a7db Mon Sep 17 00:00:00 2001 From: Ethan Pippin Date: Tue, 20 Aug 2024 00:14:07 -0600 Subject: [PATCH] Update SwiftfinApp.swift (#1202) --- Swiftfin/App/SwiftfinApp.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Swiftfin/App/SwiftfinApp.swift b/Swiftfin/App/SwiftfinApp.swift index c37087ac..b7b4e6b9 100644 --- a/Swiftfin/App/SwiftfinApp.swift +++ b/Swiftfin/App/SwiftfinApp.swift @@ -106,7 +106,7 @@ struct SwiftfinApp: App { // - atow, background video playback isn't officially supported let backgroundedInterval = Date.now.timeIntervalSince(Defaults[.backgroundTimeStamp]) - if backgroundedInterval > Defaults[.backgroundSignOutInterval] { + if Defaults[.signOutOnBackground], backgroundedInterval > Defaults[.backgroundSignOutInterval] { Defaults[.lastSignedInUserID] = nil Container.shared.currentUserSession.reset() Notifications[.didSignOut].post()