diff options
author | Damiano Galassi <[email protected]> | 2017-10-11 22:05:43 +0200 |
---|---|---|
committer | Damiano Galassi <[email protected]> | 2017-10-11 22:05:43 +0200 |
commit | 82904f720faa3293a013de011702c39a031f414e (patch) | |
tree | c857e8f3c70ca323a35cdfa1d0d627339df01366 /macosx | |
parent | b13b37ef9b2b9a09d25d963a0c9ae759070568b7 (diff) |
MacGui: Disable implicit animations on 10.9 and earlier.
Diffstat (limited to 'macosx')
-rw-r--r-- | macosx/HBPreferencesController.m | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/macosx/HBPreferencesController.m b/macosx/HBPreferencesController.m index b24219b34..30f69abe4 100644 --- a/macosx/HBPreferencesController.m +++ b/macosx/HBPreferencesController.m @@ -310,11 +310,11 @@ window.contentView = view; if (window.isVisible) - { + { view.hidden = YES; [NSAnimationContext runAnimationGroup:^(NSAnimationContext *context) { - if ([context respondsToSelector:@selector(setAllowsImplicitAnimation:)]) + if ([context respondsToSelector:@selector(setAllowsImplicitAnimation:)] && NSClassFromString(@"NSVisualEffectView")) { context.allowsImplicitAnimation = YES; } |