[vlc-commits] [Git][videolan/vlc][master] macosx: Do not display 0 for tracks lacking track number, display dash
Steve Lhomme (@robUx4)
gitlab at videolan.org
Tue May 23 07:04:54 UTC 2023
Steve Lhomme pushed to branch master at VideoLAN / VLC
Commits:
616c8228 by Claudio Cambra at 2023-05-23T06:48:15+00:00
macosx: Do not display 0 for tracks lacking track number, display dash
Signed-off-by: Claudio Cambra <developer at claudiocambra.com>
- - - - -
1 changed file:
- modules/gui/macosx/library/audio-library/VLCLibrarySongTableCellView.m
Changes:
=====================================
modules/gui/macosx/library/audio-library/VLCLibrarySongTableCellView.m
=====================================
@@ -95,7 +95,12 @@ NSString *VLCAudioLibrarySongCellIdentifier = @"VLCAudioLibrarySongCellIdentifie
_representedMediaItem = representedMediaItem;
self.songNameTextField.stringValue = representedMediaItem.displayString;
self.durationTextField.stringValue = representedMediaItem.durationString;
- self.trackNumberTextField.stringValue = [NSString stringWithFormat:@"%d", representedMediaItem.trackNumber];
+
+ if (representedMediaItem.trackNumber == 0) {
+ self.trackNumberTextField.stringValue = @"—";
+ } else {
+ self.trackNumberTextField.stringValue = [NSString stringWithFormat:@"%d", representedMediaItem.trackNumber];
+ }
}
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/616c82286e1784be632731803e04f6251ec158d8
--
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/616c82286e1784be632731803e04f6251ec158d8
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