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
|
Partition::OnPlayerTagModified() noexcept
|
||||||
{
|
{
|
||||||
EmitGlobalEvent(TAG_MODIFIED);
|
EmitGlobalEvent(TAG_MODIFIED);
|
||||||
|
|
||||||
|
/* notify all clients that the tag of the current song has
|
||||||
|
changed */
|
||||||
|
EmitIdle(IDLE_PLAYER);
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
|
@ -931,10 +931,6 @@ PlayerControl::LockUpdateSongTag(DetachedSong &song,
|
|||||||
/* the main thread will update the playlist version when he
|
/* the main thread will update the playlist version when he
|
||||||
receives this event */
|
receives this event */
|
||||||
listener.OnPlayerTagModified();
|
listener.OnPlayerTagModified();
|
||||||
|
|
||||||
/* notify all clients that the tag of the current song has
|
|
||||||
changed */
|
|
||||||
idle_add(IDLE_PLAYER);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
inline void
|
inline void
|
||||||
|
Loading…
Reference in New Issue
Block a user