Commit b27649e5 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
parent 2eda8d45
......@@ -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