From c7a23614adde79d892797cf7c2846f75a69fdc2b Mon Sep 17 00:00:00 2001 From: Damiano Galassi Date: Tue, 14 Aug 2018 08:20:58 +0200 Subject: [PATCH] Fix prefs window animation on 10.14. --- Classes/PrefsWindowController.swift | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Classes/PrefsWindowController.swift b/Classes/PrefsWindowController.swift index d99df65..c6427be 100644 --- a/Classes/PrefsWindowController.swift +++ b/Classes/PrefsWindowController.swift @@ -152,7 +152,10 @@ class PrefsWindowController: NSWindowController, NSWindowDelegate { context.duration = 0 } window.layoutIfNeeded() + NSAnimationContext.beginGrouping() + NSAnimationContext.current.duration = 0 view.isHidden = true + NSAnimationContext.endGrouping() }, completionHandler: { view.isHidden = false window.title = item.label