mirror of
https://github.com/norohind/AudioControl.git
synced 2025-04-20 16:47:37 +03:00
AudioController.is_muted(): really return bool
This commit is contained in:
parent
65e3a91443
commit
a5ab25af29
@ -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}')
|
||||
|
Loading…
x
Reference in New Issue
Block a user