Fix prefs window animation on 10.14.
This commit is contained in:
1 file changed
+3
@@ -152,7 +152,10 @@ class PrefsWindowController: NSWindowController, NSWindowDelegate {
|
|||||||
context.duration = 0
|
context.duration = 0
|
||||||
}
|
}
|
||||||
window.layoutIfNeeded()
|
window.layoutIfNeeded()
|
||||||
|
NSAnimationContext.beginGrouping()
|
||||||
|
NSAnimationContext.current.duration = 0
|
||||||
view.isHidden = true
|
view.isHidden = true
|
||||||
|
NSAnimationContext.endGrouping()
|
||||||
}, completionHandler: {
|
}, completionHandler: {
|
||||||
view.isHidden = false
|
view.isHidden = false
|
||||||
window.title = item.label
|
window.title = item.label
|
||||||
|
|||||||
Reference in new issue
Block a user