Partition: OnPlayerTagModified() emits IDLE_PLAYER

Replaces one global idle_add() call.
This commit is contained in:
Max Kellermann 2022-07-13 13:51:28 +02:00
parent cddeb2a0df
commit a542a0804a
2 changed files with 4 additions and 4 deletions

View File

@ -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

View File

@ -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