Commit 3d5587d3 authored by David Fuhrmann's avatar David Fuhrmann

macosx: Fix startup delays by loading Open.nib only on demand

There is no need to already load it here, not every user uses the open panel.
Additionally, input devices listing may take one or two seconds the
first time after the system started, so this is also better done only when needed.

close #11098
parent f5a53d4e
...@@ -777,9 +777,6 @@ static VLCMain *_o_sharedMainInstance = nil; ...@@ -777,9 +777,6 @@ static VLCMain *_o_sharedMainInstance = nil;
[[[NSWorkspace sharedWorkspace] notificationCenter] addObserver:self selector:@selector(computerWillSleep:) [[[NSWorkspace sharedWorkspace] notificationCenter] addObserver:self selector:@selector(computerWillSleep:)
name:NSWorkspaceWillSleepNotification object:nil]; name:NSWorkspaceWillSleepNotification object:nil];
/* we will need this, so let's load it here so the interface appears to be more responsive */
nib_open_loaded = [NSBundle loadNibNamed:@"Open" owner: NSApp];
/* update the main window */ /* update the main window */
[o_mainwindow updateWindow]; [o_mainwindow updateWindow];
[o_mainwindow updateTimeSlider]; [o_mainwindow updateTimeSlider];
......
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