Fix volume button (close #84)

Fix both the icon of the volume button and setting the volume if the
mixer does not allow it by using -1 as default value instead of 0.
This commit is contained in:
coderkun 2022-09-11 12:24:56 +02:00
commit e63a3f2d4d
2 changed files with 1 additions and 5 deletions

View file

@ -439,7 +439,7 @@ class Client(Base):
if 'time' in status:
time = int(status['time'].split(':')[0])
# Volume
volume = 0
volume = -1
if 'volume' in status:
volume = int(status['volume'])
# Error