Commit 5598f816 authored by David Fuhrmann's avatar David Fuhrmann

macosx: update play and playback mode status on startup

Because the playback might have been started before the interface
registeres its callbacks, set the state manually.

close #14046
parent b5c0fe45
...@@ -798,6 +798,13 @@ static VLCMain *_o_sharedMainInstance = nil; ...@@ -798,6 +798,13 @@ static VLCMain *_o_sharedMainInstance = nil;
[o_mainwindow updateTimeSlider]; [o_mainwindow updateTimeSlider];
[o_mainwindow updateVolumeSlider]; [o_mainwindow updateVolumeSlider];
/* Hack: Playlist is started before the interface.
* Thus, call additional updaters as we might miss these events if posted before
* the callbacks are registered.
*/
[self PlaylistItemChanged];
[self playbackModeUpdated];
// respect playlist-autostart // respect playlist-autostart
// note that PLAYLIST_PLAY will not stop any playback if already started // note that PLAYLIST_PLAY will not stop any playback if already started
playlist_t * p_playlist = pl_Get(VLCIntf); playlist_t * p_playlist = pl_Get(VLCIntf);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment