diff options
author | fwsmit <fw.smit01@gmail.com> | 2021-03-15 16:09:08 +0100 |
---|---|---|
committer | Christian Hesse <mail@eworm.de> | 2021-03-16 11:53:43 +0100 |
commit | 806c3cbc2ce49a67dd8ea4a8846b20e3f123ac45 (patch) | |
tree | f3145c3ce5609a2d059f3a796a03dedccbc0fd0f /mpd-notification.c | |
parent | 3a472bba0c177a2fa5ebc5dc53cc6c52e94d472e (diff) | |
download | mpd-notification-806c3cbc2ce49a67dd8ea4a8846b20e3f123ac45.tar.gz mpd-notification-806c3cbc2ce49a67dd8ea4a8846b20e3f123ac45.tar.zst |
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 <mail@eworm.de>
Diffstat (limited to 'mpd-notification.c')
-rw-r--r-- | mpd-notification.c | 2 |
1 files changed, 1 insertions, 1 deletions
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); } |