Remove 10.10 compatibility workarounds.
This commit is contained in:
6 files changed
+24
-37
No files matched your search
@@ -123,14 +123,10 @@ class PrefsWindowController: NSWindowController, NSWindowDelegate {
|
||||
|
||||
if window.isVisible && animate {
|
||||
NSAnimationContext.runAnimationGroup({ context in
|
||||
if #available(OSX 10.11, *) {
|
||||
context.allowsImplicitAnimation = true
|
||||
context.duration = duration
|
||||
}
|
||||
else {
|
||||
context.duration = 0
|
||||
}
|
||||
context.allowsImplicitAnimation = true
|
||||
context.duration = duration
|
||||
window.layoutIfNeeded()
|
||||
|
||||
NSAnimationContext.beginGrouping()
|
||||
NSAnimationContext.current.duration = 0
|
||||
view.isHidden = true
|
||||
|
||||
Reference in new issue
Block a user