Partition: OnPlayerTagModified() emits IDLE_PLAYER
Replaces one global idle_add() call.
This commit is contained in:
parent
cddeb2a0df
commit
a542a0804a
|
@ -193,6 +193,10 @@ void
|
|||
Partition::OnPlayerTagModified() noexcept
|
||||
{
|
||||
EmitGlobalEvent(TAG_MODIFIED);
|
||||
|
||||
/* notify all clients that the tag of the current song has
|
||||
changed */
|
||||
EmitIdle(IDLE_PLAYER);
|
||||
}
|
||||
|
||||
void
|
||||
|
|
|
@ -931,10 +931,6 @@ PlayerControl::LockUpdateSongTag(DetachedSong &song,
|
|||
/* the main thread will update the playlist version when he
|
||||
receives this event */
|
||||
listener.OnPlayerTagModified();
|
||||
|
||||
/* notify all clients that the tag of the current song has
|
||||
changed */
|
||||
idle_add(IDLE_PLAYER);
|
||||
}
|
||||
|
||||
inline void
|
||||
|
|
Loading…
Reference in New Issue