From e63a3f2d4d69eaecb80574075b4563bfb99066b0 Mon Sep 17 00:00:00 2001 From: coderkun Date: Sun, 11 Sep 2022 12:24:56 +0200 Subject: [PATCH] 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. --- data/ui/window.ui | 4 ---- mcg/client.py | 2 +- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/data/ui/window.ui b/data/ui/window.ui index c1fea7f..1fb9a36 100644 --- a/data/ui/window.ui +++ b/data/ui/window.ui @@ -181,10 +181,6 @@ Adjust the volume none vertical - audio-volume-muted - audio-volume-high - audio-volume-low - audio-volume-medium diff --git a/mcg/client.py b/mcg/client.py index 166a18c..3367205 100644 --- a/mcg/client.py +++ b/mcg/client.py @@ -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