summaryrefslogtreecommitdiffstats
path: root/macosx
diff options
context:
space:
mode:
authorDamiano Galassi <[email protected]>2017-10-11 22:05:43 +0200
committerDamiano Galassi <[email protected]>2017-10-11 22:05:43 +0200
commit82904f720faa3293a013de011702c39a031f414e (patch)
treec857e8f3c70ca323a35cdfa1d0d627339df01366 /macosx
parentb13b37ef9b2b9a09d25d963a0c9ae759070568b7 (diff)
MacGui: Disable implicit animations on 10.9 and earlier.
Diffstat (limited to 'macosx')
-rw-r--r--macosx/HBPreferencesController.m4
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;
}