Skip to content
Snippets Groups Projects
Commit d147bb5e authored by David's avatar David
Browse files

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.

(manual bp of 12c8eb0c)
parent a1d57751
No related branches found
No related tags found
No related merge requests found
......@@ -414,8 +414,11 @@ static NSString *kCaptureTabViewId = @"capture";
// 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];
});
int i_result = [NSApp runModalForWindow: self.window];
[self.window close];
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment