playlist/Queue: add one-shot to single mode
This commit is contained in:
committed by
Max Kellermann
parent
1fb358249b
commit
1628d801f9
@@ -31,6 +31,11 @@ public:
|
||||
* The current song's tag has changed.
|
||||
*/
|
||||
virtual void OnPlayerTagModified() noexcept = 0;
|
||||
|
||||
/**
|
||||
* Playback went into border pause.
|
||||
*/
|
||||
virtual void OnBorderPause() noexcept = 0;
|
||||
};
|
||||
|
||||
#endif
|
||||
|
||||
@@ -930,6 +930,7 @@ Player::SongBorder() noexcept
|
||||
const bool border_pause = pc.ApplyBorderPause();
|
||||
if (border_pause) {
|
||||
paused = true;
|
||||
pc.listener.OnBorderPause();
|
||||
idle_add(IDLE_PLAYER);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user