vlc | branch: master | David Fuhrmann <[email protected]> | Wed Dec 16 
12:10:39 2020 +0100| [12c8eb0c7f02b3bac3bd08ce07292183bf20d327] | committer: 
David Fuhrmann

macosx: Fix animations in open panel

Open panel was showing only half of the tab view, because
the animation was interrupted right in the middle.

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=12c8eb0c7f02b3bac3bd08ce07292183bf20d327
---

 modules/gui/macosx/windows/VLCOpenWindowController.m | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/modules/gui/macosx/windows/VLCOpenWindowController.m 
b/modules/gui/macosx/windows/VLCOpenWindowController.m
index 6d93043fbc..2bddc39345 100644
--- a/modules/gui/macosx/windows/VLCOpenWindowController.m
+++ b/modules/gui/macosx/windows/VLCOpenWindowController.m
@@ -371,8 +371,11 @@ NSString *const VLCOpenTextFieldWasClicked = 
@"VLCOpenTextFieldWasClicked";
     // load window
     [self window];
 
-    [_tabView selectTabViewItemWithIdentifier:identifier];
-    [_fileSubCheckbox setState: NSOffState];
+    // Delay this to allow the full animation to run inside the modal event 
loop
+    dispatch_async(dispatch_get_main_queue(), ^{
+        [_tabView selectTabViewItemWithIdentifier:identifier];
+        [_fileSubCheckbox setState: NSOffState];
+    });
 
     NSModalResponse i_result = [NSApp runModalForWindow: self.window];
     [self.window close];

_______________________________________________
vlc-commits mailing list
[email protected]
https://mailman.videolan.org/listinfo/vlc-commits

Reply via email to