[vlc-commits] [Git][videolan/vlc][master] macosx: Fix media source views not starting in list view mode when list view mode selected

Steve Lhomme (@robUx4) gitlab at videolan.org
Mon Nov 14 08:25:48 UTC 2022



Steve Lhomme pushed to branch master at VideoLAN / VLC


Commits:
f281f5cd by Claudio Cambra at 2022-11-14T07:54:13+00:00
macosx: Fix media source views not starting in list view mode when list view mode selected

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

- - - - -


1 changed file:

- modules/gui/macosx/media-source/VLCMediaSourceBaseDataSource.m


Changes:

=====================================
modules/gui/macosx/media-source/VLCMediaSourceBaseDataSource.m
=====================================
@@ -96,19 +96,18 @@ NSString *VLCMediaSourceTableViewCellIdentifier = @"VLCMediaSourceTableViewCellI
     self.homeButton.target = self;
     self.pathControl.URL = nil;
 
-    self.gridVsListSegmentedControl.action = @selector(setGridOrListMode:);
-    self.gridVsListSegmentedControl.target = self;
-
     self.tableView.dataSource = self;
     self.tableView.delegate = self;
     self.tableView.hidden = YES;
-    _gridViewMode = self.gridVsListSegmentedControl.selectedSegment == VLCGridViewModeSegment;
+    
+    [self reloadViews];
 }
 
 - (void)reloadViews
 {
     self.gridVsListSegmentedControl.action = @selector(setGridOrListMode:);
     self.gridVsListSegmentedControl.target = self;
+    _gridViewMode = self.gridVsListSegmentedControl.selectedSegment == VLCGridViewModeSegment;
 
     [self setCurrentViewMode];
 }



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

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