[vlc-commits] [Git][videolan/vlc][master] macosx: hide tags column in streams view
Steve Lhomme (@robUx4)
gitlab at videolan.org
Tue Aug 4 05:18:09 UTC 2026
Steve Lhomme pushed to branch master at VideoLAN / VLC
Commits:
cf5d214e by Serhii Bykov at 2026-08-04T05:08:26+00:00
macosx: hide tags column in streams view
- - - - -
1 changed file:
- modules/gui/macosx/library/media-source/VLCMediaSourceBaseDataSource.m
Changes:
=====================================
modules/gui/macosx/library/media-source/VLCMediaSourceBaseDataSource.m
=====================================
@@ -50,6 +50,7 @@
#import "views/VLCUIUnits.h"
NSString * const VLCMediaSourceBaseDataSourceNodeChanged = @"VLCMediaSourceBaseDataSourceNodeChanged";
+NSString * const VLCMediaSourceTableTagsColumnIdentifier = @"VLCMediaSourceTableTagsColumn";
@interface VLCLANDeviceRecord : NSObject
@property (readonly) VLCMediaSource *mediaSource;
@@ -156,9 +157,17 @@ NSString * const VLCMediaSourceBaseDataSourceNodeChanged = @"VLCMediaSourceBaseD
NSNib * const tableCellViewNib = [[NSNib alloc] initWithNibNamed:NSStringFromClass(VLCLibraryTableCellView.class) bundle:nil];
[self.tableView registerNib:tableCellViewNib forIdentifier:VLCLibraryTableCellViewIdentifier];
+ [self updateTableColumnVisibility];
[self reloadViews];
}
+- (void)updateTableColumnVisibility
+{
+ NSTableColumn * const tagsColumn =
+ [self.tableView tableColumnWithIdentifier:VLCMediaSourceTableTagsColumnIdentifier];
+ tagsColumn.hidden = self.mediaSourceMode == VLCMediaSourceModeInternet;
+}
+
- (void)reloadViews
{
const VLCLibraryViewModeSegment viewModeSegment = self.viewMode;
@@ -240,6 +249,7 @@ NSString * const VLCMediaSourceBaseDataSourceNodeChanged = @"VLCMediaSourceBaseD
return;
}
_mediaSourceMode = mediaSourceMode;
+ [self updateTableColumnVisibility];
[self loadMediaSources];
[self returnHome];
}
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/cf5d214e657fea65e53b4ea8044950a7c5495331
--
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/cf5d214e657fea65e53b4ea8044950a7c5495331
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