Commit f80f7642 authored by Felix Paul Kühne's avatar Felix Paul Kühne

macosx: work-around so we don't block the main thread for ages during launch...

macosx: work-around so we don't block the main thread for ages during launch time without showing a window
(cherry picked from commit b27649e5)
parent a69ec1fe
......@@ -277,8 +277,8 @@ static VLCOpen *_o_sharedMainInstance = nil;
NSWorkspace *sharedWorkspace = [NSWorkspace sharedWorkspace];
[[sharedWorkspace notificationCenter] addObserver:self selector:@selector(scanOpticalMedia:) name:NSWorkspaceDidMountNotification object:nil];
[[sharedWorkspace notificationCenter] addObserver:self selector:@selector(scanOpticalMedia:) name:NSWorkspaceDidUnmountNotification object:nil];
[self scanOpticalMedia:nil];
[self qtkChanged:nil];
[self performSelector:@selector(scanOpticalMedia:) withObject:nil afterDelay:2.0];
[self performSelector:@selector(qtkChanged:) withObject:nil afterDelay:2.5];
[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