diff --git a/Loop/Managers/WindowDragManager.swift b/Loop/Managers/WindowDragManager.swift index e5c434ad..df87c01d 100644 --- a/Loop/Managers/WindowDragManager.swift +++ b/Loop/Managers/WindowDragManager.swift @@ -138,13 +138,16 @@ class WindowDragManager { print("Window snapping direction changed: \(direction)") - self.previewController.open(screen: screen, window: nil) - DispatchQueue.main.async { - NotificationCenter.default.post( - name: Notification.Name.updateUIDirection, - object: nil, - userInfo: ["action": WindowAction(self.direction)] - ) + if Defaults[.previewVisibility] { + self.previewController.open(screen: screen, window: nil) + + DispatchQueue.main.async { + NotificationCenter.default.post( + name: Notification.Name.updateUIDirection, + object: nil, + userInfo: ["action": WindowAction(self.direction)] + ) + } } } else { self.direction = .noAction