Update app.py

set _base_vals after merging/loading defaults
This commit is contained in:
onyx-and-iris 2022-04-14 01:19:08 +01:00
parent b223044ddf
commit 4ce288e474

View File

@ -53,13 +53,13 @@ class App(tk.Tk):
}
if configuration:
self.configuration = defaults | self.configuration
_base_vals.themes_enabled = self.configuration["theme"]["enabled"]
_base_vals.extends_horizontal = self.configuration["extends"][
"extends_horizontal"
]
_base_vals.submixes = self.configuration["submixes"]["default"]
else:
configuration["app"] = defaults
_base_vals.themes_enabled = self.configuration["theme"]["enabled"]
_base_vals.extends_horizontal = self.configuration["extends"][
"extends_horizontal"
]
_base_vals.submixes = self.configuration["submixes"]["default"]
# create menus
self.menus = Menus(self, vmr)
self.styletable = ttk.Style()