[vlc-commits] [Git][videolan/vlc][master] macosx: Make sure not to present track number in play queue when this == 0
Steve Lhomme (@robUx4)
gitlab at videolan.org
Mon Jun 30 11:47:31 UTC 2025
Steve Lhomme pushed to branch master at VideoLAN / VLC
Commits:
6cdf8400 by Claudio Cambra at 2025-06-30T11:33:47+00:00
macosx: Make sure not to present track number in play queue when this == 0
Signed-off-by: Claudio Cambra <developer at claudiocambra.com>
- - - - -
1 changed file:
- modules/gui/macosx/playqueue/VLCPlayQueueTableCellView.m
Changes:
=====================================
modules/gui/macosx/playqueue/VLCPlayQueueTableCellView.m
=====================================
@@ -97,8 +97,9 @@
NSString *playTitle = item.title;
if (validTitleString) {
- if (item.inputItem.trackNumber && item.inputItem.trackNumber.length > 0) {
- playTitle = [NSString stringWithFormat:@"%@ · %@", item.inputItem.trackNumber, item.inputItem.title];
+ NSString * const trackNumberString = item.inputItem.trackNumber;
+ if (trackNumberString && trackNumberString.length > 0 && ![trackNumberString isEqualToString:@"0"]) {
+ playTitle = [NSString stringWithFormat:@"%@ · %@", trackNumberString, item.inputItem.title];
} else {
playTitle = item.inputItem.title;
}
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/6cdf8400134e49c3dc66168c0af41c73a22669cb
--
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/6cdf8400134e49c3dc66168c0af41c73a22669cb
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