diff --git a/Loop/Managers/WindowDragManager.swift b/Loop/Managers/WindowDragManager.swift index 1fce60bc..5c0e1489 100644 --- a/Loop/Managers/WindowDragManager.swift +++ b/Loop/Managers/WindowDragManager.swift @@ -147,16 +147,14 @@ class WindowDragManager { print("Window snapping direction changed: \(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)] - ) - } + 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 diff --git a/Loop/Window Management/WindowEngine.swift b/Loop/Window Management/WindowEngine.swift index 1545845f..b88df0e7 100644 --- a/Loop/Window Management/WindowEngine.swift +++ b/Loop/Window Management/WindowEngine.swift @@ -61,6 +61,7 @@ struct WindowEngine { let enhancedUI = window.enhancedUserInterface ?? false let animate = Defaults[.animateWindowResizes] && !enhancedUI + WindowRecords.record(window, action) if window.nsRunningApplication == NSRunningApplication.current, let window = NSApp.keyWindow { @@ -100,8 +101,6 @@ struct WindowEngine { WindowEngine.handleSizeConstrainedWindow(window: window, screenFrame: screen.safeScreenFrame) } - - WindowRecords.record(window, action) } static func getTargetWindow() -> Window? {