[vlc-commits] [Git][videolan/vlc][master] macosx: Instantiate library window controller on libraryWindow request

Felix Paul Kühne (@fkuehne) gitlab at videolan.org
Mon Nov 9 08:34:11 UTC 2026



Felix Paul Kühne pushed to branch master at VideoLAN / VLC


Commits:
c30c5e89 by Claudio at 2026-11-09T08:51:51+01:00
macosx: Instantiate library window controller on libraryWindow request

This window can be requested before applicationDidFinishLaunching runs

- - - - -


1 changed file:

- modules/gui/macosx/main/VLCMain.m


Changes:

=====================================
modules/gui/macosx/main/VLCMain.m
=====================================
@@ -361,11 +361,7 @@ static VLCMain *sharedInstance = nil;
 {
     _launched = YES;
 
-    if (_libraryWindowController == nil) {
-        _libraryWindowController = [[VLCLibraryWindowController alloc] initWithLibraryWindow];
-    }
-
-    [_libraryWindowController.window makeKeyAndOrderFront:nil];
+    [self.libraryWindow makeKeyAndOrderFront:nil];
 
     if (!_p_intf)
         return;
@@ -489,6 +485,11 @@ static VLCMain *sharedInstance = nil;
 
 - (VLCLibraryWindow *)libraryWindow
 {
+    // Video output can be enabled before applicationDidFinishLaunching:.
+    if (_libraryWindowController == nil) {
+        _libraryWindowController = [[VLCLibraryWindowController alloc] initWithLibraryWindow];
+    }
+
     return (VLCLibraryWindow *)_libraryWindowController.window;
 }
 



View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/c30c5e89a775e11d290879fa5691a12ee242f8d9

-- 
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/c30c5e89a775e11d290879fa5691a12ee242f8d9
You're receiving this email because of your account on code.videolan.org. Manage all notifications: https://code.videolan.org/-/profile/notifications | Help: https://code.videolan.org/help




More information about the vlc-commits mailing list