mirror of
https://github.com/Qz3rK/tdesktop.git
synced 2026-07-03 14:15:08 +02:00
Fixed update of availability of next and previous tracks in SMC.
This commit is contained in:
@@ -163,6 +163,13 @@ SystemMediaControlsManager::SystemMediaControlsManager(
|
||||
_lastAudioMsgId = current;
|
||||
}, _lifetime);
|
||||
|
||||
mediaPlayer->playlistChanges(
|
||||
type
|
||||
) | rpl::start_with_next([=] {
|
||||
_controls->setIsNextEnabled(mediaPlayer->nextAvailable(type));
|
||||
_controls->setIsPreviousEnabled(mediaPlayer->previousAvailable(type));
|
||||
}, _lifetime);
|
||||
|
||||
_controls->commandRequests(
|
||||
) | rpl::start_with_next([=](Command command) {
|
||||
switch (command) {
|
||||
|
||||
Reference in New Issue
Block a user