[vlc-commits] [Git][videolan/vlc][master] macosx: Show no-results view for empty group searches

Jean-Baptiste Kempf (@jbk) gitlab at videolan.org
Fri Oct 30 12:36:11 UTC 2026



Jean-Baptiste Kempf pushed to branch master at VideoLAN / VLC


Commits:
971d6b6f by Serhii Bykov at 2026-10-30T13:15:14+01:00
macosx: Show no-results view for empty group searches

- - - - -


1 changed file:

- modules/gui/macosx/library/groups-library/VLCLibraryGroupsViewController.m


Changes:

=====================================
modules/gui/macosx/library/groups-library/VLCLibraryGroupsViewController.m
=====================================
@@ -37,6 +37,7 @@
 #import "library/VLCLibraryHeaderView.h"
 #import "library/VLCLibraryMasterDetailViewTableViewDelegate.h"
 #import "library/VLCLibraryModel.h"
+#import "library/VLCLibrarySegment.h"
 #import "library/VLCLibraryTableCellView.h"
 #import "library/VLCLibraryTableView.h"
 #import "library/VLCLibraryTwoPaneSplitViewDelegate.h"
@@ -65,10 +66,26 @@
         [self setupGridViewModeViews];
         [self setupListViewModeViews];
         [self setupPlaceholderView];
+
+        [NSNotificationCenter.defaultCenter addObserver:self
+                                               selector:@selector(libraryModelGroupsListReset:)
+                                                   name:VLCLibraryModelListOfGroupsReset
+                                                 object:nil];
     }
     return self;
 }
 
+- (void)libraryModelGroupsListReset:(NSNotification *)notification
+{
+    const VLCLibrarySegmentType segmentType = self.libraryWindow.librarySegmentType;
+    const BOOL groupsSegmentActive = segmentType == VLCLibraryGroupsSegmentType ||
+                                     segmentType == VLCLibraryGroupsGroupSubSegmentType;
+
+    if (groupsSegmentActive && !self.libraryWindow.embeddedVideoPlaybackActive) {
+        [self presentGroupsView];
+    }
+}
+
 - (void)setupDataSource
 {
     _dataSource = [[VLCLibraryGroupsDataSource alloc] init];



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

-- 
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/971d6b6f8986eb30da64bdc48fe6cfc9e3af42ce
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