mirror of
https://github.com/onyx-and-iris/voicemeeter-compact.git
synced 2024-11-21 20:30:56 +00:00
Update app.py
using __file__ to fetch path dir add default value for submix
This commit is contained in:
parent
47d7014592
commit
838ba42b9d
@ -36,12 +36,16 @@ class App(tk.Tk):
|
||||
super().__init__()
|
||||
defaults = {
|
||||
"theme": {
|
||||
"enabled": True,
|
||||
"mode": "light",
|
||||
},
|
||||
"extends": {
|
||||
"extended": False,
|
||||
"extends_horizontal": True,
|
||||
},
|
||||
"submixes": {
|
||||
"default": 0,
|
||||
},
|
||||
}
|
||||
self.configuration = defaults | self.configuration
|
||||
_base_vals.themes_enabled = self.configuration["theme"]["enabled"]
|
||||
@ -66,7 +70,7 @@ class App(tk.Tk):
|
||||
self.drag_id = ""
|
||||
self.bind("<Configure>", self.dragging)
|
||||
|
||||
self.iconbitmap(Path.cwd() / "vmcompact" / "img" / "cat.ico")
|
||||
self.iconbitmap(Path(__file__).parent.resolve() / "img" / "cat.ico")
|
||||
|
||||
@property
|
||||
def target(self):
|
||||
|
Loading…
Reference in New Issue
Block a user