mirror of
https://github.com/norohind/AudioControl.git
synced 2026-10-22 21:32:09 +03:00
AudioController.is_muted(): really return bool
This commit is contained in:
1 file changed
+1
-1
+1
-1
@@ -197,7 +197,7 @@ class AudioController:
|
||||
self._sessions[pid].SimpleAudioVolume.SetMute(int(is_muted), None)
|
||||
|
||||
def is_muted(self, pid: int) -> bool:
|
||||
return self._sessions[pid].SimpleAudioVolume.GetMute()
|
||||
return bool(self._sessions[pid].SimpleAudioVolume.GetMute())
|
||||
|
||||
def toggle_mute(self, pid: int):
|
||||
logger.trace(f'Toggle mute for {pid}')
|
||||
|
||||
Reference in new issue
Block a user