Commit 7d67bb4b authored by David Fuhrmann's avatar David Fuhrmann

macosx: avoid ugly delayed initialization calls for the open panel

These selectors may not be called in time as the main loop is blocked
if a modal dialog is open.
parent 3d5587d3
......@@ -317,8 +317,9 @@ static VLCOpen *_o_sharedMainInstance = nil;
[[sharedWorkspace notificationCenter] addObserver:self selector:@selector(scanOpticalMedia:) name:NSWorkspaceDidMountNotification object:nil];
[[sharedWorkspace notificationCenter] addObserver:self selector:@selector(scanOpticalMedia:) name:NSWorkspaceDidUnmountNotification object:nil];
[self performSelector:@selector(qtkToggleUIElements:) withObject:nil afterDelay:.3];
[self performSelector:@selector(scanOpticalMedia:) withObject:nil afterDelay:.5];
[self qtkToggleUIElements:nil];
[self scanOpticalMedia:nil];
[self setMRL: @""];
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment