[vlc-commits] [Git][videolan/vlc][master] macosx: Hide lyrics button for videos (if they are missing lyrics tracks)
Steve Lhomme (@robUx4)
gitlab at videolan.org
Thu May 21 02:56:38 UTC 2026
Steve Lhomme pushed to branch master at VideoLAN / VLC
Commits:
9f21e5d4 by Claudio Cambra at 2026-05-21T02:39:36+00:00
macosx: Hide lyrics button for videos (if they are missing lyrics tracks)
Signed-off-by: Claudio Cambra <developer at claudiocambra.com>
- - - - -
1 changed file:
- modules/gui/macosx/windows/controlsbar/VLCMainVideoViewControlsBar.m
Changes:
=====================================
modules/gui/macosx/windows/controlsbar/VLCMainVideoViewControlsBar.m
=====================================
@@ -166,6 +166,7 @@
{
const BOOL lyricsAvailable = _playerController.lyricsAvailable;
self.lyricsButton.enabled = lyricsAvailable;
+ self.lyricsButton.hidden = !_playerController.currentMediaIsAudioOnly && !lyricsAvailable;
self.lyricsButton.state = _playerController.showLyrics ? NSControlStateValueOn : NSControlStateValueOff;
if (@available(macOS 26.0, *)) {
@@ -319,6 +320,8 @@
if (!VLCMain.sharedInstance.libraryController.shouldUseMediaLibrary) {
self.bookmarksButton.hidden = YES;
}
+
+ [self updateLyricsButton:nil];
}
- (void)playerStateUpdated:(NSNotification *)notification
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/9f21e5d43314c9350b52435728191339ee4e60a4
--
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/9f21e5d43314c9350b52435728191339ee4e60a4
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