[vlc-commits] [Git][videolan/vlc][master] macosx: Do not account for chapters in playback controls enablement
Steve Lhomme (@robUx4)
gitlab at videolan.org
Wed Feb 5 08:09:41 UTC 2025
Steve Lhomme pushed to branch master at VideoLAN / VLC
Commits:
259a7cfb by Claudio Cambra at 2025-02-05T07:27:15+00:00
macosx: Do not account for chapters in playback controls enablement
Signed-off-by: Claudio Cambra <developer at claudiocambra.com>
- - - - -
1 changed file:
- modules/gui/macosx/windows/controlsbar/VLCMainWindowControlsBar.m
Changes:
=====================================
modules/gui/macosx/windows/controlsbar/VLCMainWindowControlsBar.m
=====================================
@@ -195,15 +195,12 @@
}
}
-- (void)updatePlaybackControls:(NSNotification *)aNotification
+- (void)updatePlaybackControls:(NSNotification *)notification
{
- bool b_seekable = _playerController.seekable;
- // FIXME: re-add chapter navigation as needed
- bool b_chapters = false;
-
- [self.prevButton setEnabled: (b_seekable || _playQueueController.hasPreviousPlayQueueItem || b_chapters)];
- [self.nextButton setEnabled: (b_seekable || _playQueueController.hasNextPlayQueueItem || b_chapters)];
- [self updateCurrentItemDisplayControls:aNotification];
+ const BOOL b_seekable = _playerController.seekable;
+ self.prevButton.enabled = b_seekable || _playQueueController.hasPreviousPlayQueueItem;
+ self.nextButton.enabled = b_seekable || _playQueueController.hasNextPlayQueueItem;
+ [self updateCurrentItemDisplayControls:notification];
}
@end
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/259a7cfb63be47330ebc463ad2ee548e881dc384
--
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/259a7cfb63be47330ebc463ad2ee548e881dc384
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