fixes regression loading config on startup

patch bump
This commit is contained in:
onyx-and-iris 2023-11-19 23:09:02 +00:00
parent dacc972b17
commit 0adfec2e63
2 changed files with 4 additions and 4 deletions

View File

@ -1,6 +1,6 @@
[project] [project]
name = "nvda_voicemeeter" name = "nvda_voicemeeter"
version = "0.6.0" version = "0.6.1"
description = "A Voicemeeter app compatible with NVDA" description = "A Voicemeeter app compatible with NVDA"
authors = [ authors = [
{ name = "onyx-and-iris", email = "code@onyxandiris.online" }, { name = "onyx-and-iris", email = "code@onyxandiris.online" },

View File

@ -509,15 +509,15 @@ class NVDAVMWindow(psg.Window):
file_types=(("XML", ".xml"),), file_types=(("XML", ".xml"),),
): ):
filepath = Path(filepath) filepath = Path(filepath)
configuration.set("default_settings", str(filepath)) configuration.set("default_config", str(filepath))
self.TKroot.after( self.TKroot.after(
200, 200,
self.nvda.speak, self.nvda.speak,
f"config {filepath.stem} set as default on startup", f"config {filepath.stem} set as default on startup",
) )
else: else:
configuration.delete("default_settings") configuration.delete("default_config")
self.logger.debug("default_settings removed from settings.json") self.logger.debug("default_config removed from settings.json")
case [theme, ["MENU", "THEME"]]: case [theme, ["MENU", "THEME"]]:
chosen = " ".join(theme) chosen = " ".join(theme)