mirror of
https://github.com/onyx-and-iris/voicemeeter-api-python.git
synced 2024-11-22 19:10:47 +00:00
fix str format
This commit is contained in:
parent
86612a65cb
commit
ad69d2cf14
@ -24,7 +24,7 @@ class Event:
|
|||||||
@pdirty.setter
|
@pdirty.setter
|
||||||
def pdirty(self, val: bool):
|
def pdirty(self, val: bool):
|
||||||
self.subs["pdirty"] = val
|
self.subs["pdirty"] = val
|
||||||
self.info(f"pdirty {'added to' if val else {'removed from'}}")
|
self.info(f"pdirty {'added to' if val else 'removed from'}")
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def mdirty(self) -> bool:
|
def mdirty(self) -> bool:
|
||||||
@ -33,7 +33,7 @@ class Event:
|
|||||||
@mdirty.setter
|
@mdirty.setter
|
||||||
def mdirty(self, val: bool):
|
def mdirty(self, val: bool):
|
||||||
self.subs["mdirty"] = val
|
self.subs["mdirty"] = val
|
||||||
self.info(f"mdirty {'added to' if val else {'removed from'}}")
|
self.info(f"mdirty {'added to' if val else 'removed from'}")
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def midi(self) -> bool:
|
def midi(self) -> bool:
|
||||||
@ -42,7 +42,7 @@ class Event:
|
|||||||
@midi.setter
|
@midi.setter
|
||||||
def midi(self, val: bool):
|
def midi(self, val: bool):
|
||||||
self.subs["midi"] = val
|
self.subs["midi"] = val
|
||||||
self.info(f"midi {'added to' if val else {'removed from'}}")
|
self.info(f"midi {'added to' if val else 'removed from'}")
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def ldirty(self) -> bool:
|
def ldirty(self) -> bool:
|
||||||
@ -51,7 +51,7 @@ class Event:
|
|||||||
@ldirty.setter
|
@ldirty.setter
|
||||||
def ldirty(self, val: bool):
|
def ldirty(self, val: bool):
|
||||||
self.subs["ldirty"] = val
|
self.subs["ldirty"] = val
|
||||||
self.info(f"ldirty {'added to' if val else {'removed from'}}")
|
self.info(f"ldirty {'added to' if val else 'removed from'}")
|
||||||
|
|
||||||
def get(self) -> list:
|
def get(self) -> list:
|
||||||
return [k for k, v in self.subs.items() if v]
|
return [k for k, v in self.subs.items() if v]
|
||||||
|
Loading…
Reference in New Issue
Block a user