]> granicus.if.org Git - handbrake/commitdiff
MacGui: Disable implicit animations on 10.9 and earlier.
authorDamiano Galassi <damiog@gmail.com>
Wed, 11 Oct 2017 20:05:43 +0000 (22:05 +0200)
committerDamiano Galassi <damiog@gmail.com>
Wed, 11 Oct 2017 20:05:43 +0000 (22:05 +0200)
macosx/HBPreferencesController.m

index b24219b349dc6f81409a7713098713d8cd3bfd38..30f69abe4fc2a411108366528923508c2277c333 100644 (file)
     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;
                 }