the extension settings is now saved in the option.json file

This commit is contained in:
Faraphel 2022-08-20 23:23:30 +02:00
parent 63bb989b05
commit 2d50619b6c
2 changed files with 5 additions and 1 deletions

View file

@ -325,9 +325,12 @@ class DestinationGame(ttk.LabelFrame):
self.entry.grid(row=1, column=1, sticky="nsew")
self.output_type = ttk.Combobox(self, width=5, values=[extension.name for extension in Extension])
self.output_type.set(Extension.WBFS.name)
self.output_type.set(self.root.options["extension"])
self.output_type.grid(row=1, column=2, sticky="nsew")
def output_type_callback(_: tkinter.Event): self.root.options["extension"] = self.output_type.get()
self.output_type.bind("<<ComboboxSelected>>", output_type_callback)
self.button = ttk.Button(self, text="...", width=2, command=self.select)
self.button.grid(row=1, column=3, sticky="nsew")

View file

@ -16,6 +16,7 @@ class Option:
"threads": 8,
"mystuff_pack_selected": None,
"mystuff_packs": {},
"extension": "WBFS",
}
def __init__(self, **options):