mirror of
https://github.com/onyx-and-iris/voicemeeter-compact.git
synced 2026-03-12 05:09:12 +00:00
no need to rewrite entry point anymore
This commit is contained in:
parent
d612d38933
commit
262dcd572b
@ -25,9 +25,6 @@ def rewrite_app(theme):
|
||||
with open(outfile, 'w') as output:
|
||||
for line in input:
|
||||
match line:
|
||||
# App init()
|
||||
case ' def __init__(self, vmr):\n':
|
||||
output.write(' def __init__(self, vmr, theme):\n')
|
||||
case ' self._vmr = vmr\n':
|
||||
write_outs(
|
||||
output,
|
||||
@ -46,11 +43,6 @@ def rewrite_app(theme):
|
||||
' self.tk.call("source", tcldir.resolve() / f"{self._theme_name}.tcl")\n',
|
||||
),
|
||||
)
|
||||
# def connect()
|
||||
case 'def connect(kind_id: str, vmr) -> App:\n':
|
||||
output.write('def connect(kind_id: str, vmr, theme) -> App:\n')
|
||||
case ' return VMMIN_cls(vmr)\n':
|
||||
output.write(' return VMMIN_cls(vmr, theme)\n')
|
||||
case _:
|
||||
output.write(line)
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user