mirror of
https://github.com/onyx-and-iris/voicemeeter-api-python.git
synced 2026-04-18 12:33:34 +00:00
add VmGUI class to misc.
lets you check if gui was launched by the api
This commit is contained in:
@@ -250,3 +250,19 @@ class Midi:
|
||||
|
||||
def _set(self, key: int, velocity: int):
|
||||
self.cache[key] = velocity
|
||||
|
||||
|
||||
class VmGui:
|
||||
_launched = None
|
||||
|
||||
@property
|
||||
def launched(self) -> bool:
|
||||
return self._launched
|
||||
|
||||
@launched.setter
|
||||
def launched(self, val: bool):
|
||||
self._launched = val
|
||||
|
||||
@property
|
||||
def launched_by_api(self):
|
||||
return not self.launched
|
||||
|
||||
Reference in New Issue
Block a user