fix: chacking for opend logging list view controller

This commit is contained in:
Nikita Semenov 2022-11-08 18:06:32 +03:00
parent 13cf92c9c1
commit d0576acd95
1 changed files with 3 additions and 1 deletions

View File

@ -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)