From 806c3cbc2ce49a67dd8ea4a8846b20e3f123ac45 Mon Sep 17 00:00:00 2001 From: fwsmit Date: Mon, 15 Mar 2021 16:09:08 +0100 Subject: fix flickering notification when unpausing When last state is 'pause' we already have the correct icon, so no need to reset with generic icon. Signed-off-by: Christian Hesse --- mpd-notification.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mpd-notification.c b/mpd-notification.c index fa7a0aa..1bbc559 100644 --- a/mpd-notification.c +++ b/mpd-notification.c @@ -416,7 +416,7 @@ int main(int argc, char ** argv) { /* There's a bug in libnotify where the server spec version is fetched * too late, which results in issue with image date. Make sure to * show a notification without image data (just generic icon) first. */ - if (last_state != MPD_STATE_PLAY) { + if (last_state != MPD_STATE_PLAY && last_state != MPD_STATE_PAUSE) { notify_notification_update(notification, TEXT_TOPIC, "Starting playback...", ICON_AUDIO_X_GENERIC); notify_notification_show(notification, NULL); } -- cgit v1.2.3-70-g09d2