[vlc-commits] [Git][videolan/vlc][master] macosx: Ensure that errorPanel is instantiated when returning from property in...

Steve Lhomme (@robUx4) gitlab at videolan.org
Tue Jul 18 06:31:19 UTC 2023



Steve Lhomme pushed to branch master at VideoLAN / VLC


Commits:
d8c4fe0b by Claudio Cambra at 2023-07-18T06:15:18+00:00
macosx: Ensure that errorPanel is instantiated when returning from property in VLCCoreDialogProvider

Signed-off-by: Claudio Cambra <developer at claudiocambra.com>

- - - - -


1 changed file:

- modules/gui/macosx/panels/dialogs/VLCCoreDialogProvider.m


Changes:

=====================================
modules/gui/macosx/panels/dialogs/VLCCoreDialogProvider.m
=====================================
@@ -31,6 +31,9 @@
 #import <vlc_dialog.h>
 
 @interface VLCCoreDialogProvider ()
+{
+    VLCErrorWindowController *_errorPanel;
+}
 
 - (void)displayErrorWithTitle:(NSString *)title
                          text:(NSString *)text;
@@ -359,6 +362,15 @@ static void updateProgressCallback(void *p_data,
     }
 }
 
+- (VLCErrorWindowController *)errorPanel
+{
+    if (!_errorPanel) {
+        _errorPanel = [[VLCErrorWindowController alloc] init];
+    }
+
+    return _errorPanel;
+}
+
 - (IBAction)progressDialogAction:(id)sender
 {
     [NSApp stopModalWithCode: -1];



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

-- 
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/d8c4fe0bd354afaf2f03e361b958a134f8c16493
You're receiving this email because of your account on code.videolan.org.


VideoLAN code repository instance


More information about the vlc-commits mailing list