Fix prefs window animation on 10.14.

This commit is contained in:
Damiano Galassi committed 2018-08-14 08:20:58 +02:00
1 parent 10bef07af1
commit c7a23614ad
1 file changed
+3
+3
View File
@@ -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