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 <[email protected]>
- - - - -
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_______________________________________________
vlc-commits mailing list
[email protected]
https://mailman.videolan.org/listinfo/vlc-commits