[modules/playerctl]: support the stopped status

This commit is contained in:
Yufan You 2021-06-26 18:19:12 +08:00
parent 447d094fe2
commit 37ccbd7f4a
No known key found for this signature in database
GPG key ID: 863A0F9FA8127FA4

View file

@ -96,6 +96,8 @@ class Module(core.module.Module):
widget.set("state", "playing")
elif playback_status == "Paused":
widget.set("state", "paused")
elif playback_status == "Stopped":
widget.set("state", "stopped")
else:
widget.set("state", "")
elif widget.name == "playerctl.next":