Merge pull request #6 from onyx-and-iris/use_mute_prop

use mute property
This commit is contained in:
lebaston100 2022-11-09 17:21:10 +01:00 committed by GitHub
commit fddb1390ba
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -40,10 +40,10 @@ class Observer:
def on_current_program_scene_changed(self, data): def on_current_program_scene_changed(self, data):
def ftoggle(i): def ftoggle(i):
self._mixer.strip[i - 1].mix.on = not self._mixer.strip[i - 1].mix.on self._mixer.strip[i - 1].mute = not self._mixer.strip[i - 1].mute
def fset(i, is_muted): def fset(i, is_muted):
self._mixer.strip[i - 1].mix.on = is_muted self._mixer.strip[i - 1].mute = is_muted
scene = data.scene_name scene = data.scene_name
print(f"Switched to scene {scene}") print(f"Switched to scene {scene}")