diff --git a/TILogging/Sources/Views/LoggerWindow/LoggingTogglingWindow.swift b/TILogging/Sources/Views/LoggerWindow/LoggingTogglingWindow.swift index 7c036bba..7c8fea1e 100644 --- a/TILogging/Sources/Views/LoggerWindow/LoggingTogglingWindow.swift +++ b/TILogging/Sources/Views/LoggerWindow/LoggingTogglingWindow.swift @@ -88,7 +88,9 @@ public extension UIWindow { return } - if motion == .motionShake, loggingController.isRegisteredForShakingEvent { + if motion == .motionShake, + logginController.isLogsPresented, + loggingController.isRegisteredForShakingEvent { loggingController.openLoggingScreen() } else { super.motionEnded(motion, with: event)