From 82904f720faa3293a013de011702c39a031f414e Mon Sep 17 00:00:00 2001 From: Damiano Galassi Date: Wed, 11 Oct 2017 22:05:43 +0200 Subject: [PATCH] MacGui: Disable implicit animations on 10.9 and earlier. --- macosx/HBPreferencesController.m | 4 ++-- 1 file 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; } -- 2.40.0