mirror of
https://github.com/aclist/dztui.git
synced 2026-10-30 14:42:54 +01:00
change: write config only on last page
This commit is contained in:
1 parent
572ac5d7ce
commit
d04c20498a
1 file changed
+5
-4
@@ -496,8 +496,7 @@ class Assistant(Gtk.Assistant):
|
|||||||
if page.is_migrated():
|
if page.is_migrated():
|
||||||
sp = page.migrated_conf["default_steam_path"]
|
sp = page.migrated_conf["default_steam_path"]
|
||||||
self.page_shortcuts.set_steam_path(sp)
|
self.page_shortcuts.set_steam_path(sp)
|
||||||
self.write_config(self.page_migration.migrated_conf)
|
self.config_values = self.page_migration.migrated_conf
|
||||||
self.setup_complete = True
|
|
||||||
return self.get_final_page()
|
return self.get_final_page()
|
||||||
case SteamPathPage():
|
case SteamPathPage():
|
||||||
self.config_values["default_steam_path"] = page.get_path_from_radio()
|
self.config_values["default_steam_path"] = page.get_path_from_radio()
|
||||||
@@ -509,11 +508,9 @@ class Assistant(Gtk.Assistant):
|
|||||||
self.config_values["name"] = name
|
self.config_values["name"] = name
|
||||||
self.config_values["use_miles"] = use_miles
|
self.config_values["use_miles"] = use_miles
|
||||||
self.config_values["client"] = client
|
self.config_values["client"] = client
|
||||||
self.write_config(self.config_values)
|
|
||||||
self.page_shortcuts.set_steam_path(
|
self.page_shortcuts.set_steam_path(
|
||||||
self.config_values["default_steam_path"]
|
self.config_values["default_steam_path"]
|
||||||
)
|
)
|
||||||
self.setup_complete = True
|
|
||||||
case ShortcutCreationPage():
|
case ShortcutCreationPage():
|
||||||
page.create_shortcuts()
|
page.create_shortcuts()
|
||||||
case _:
|
case _:
|
||||||
@@ -565,6 +562,10 @@ class Assistant(Gtk.Assistant):
|
|||||||
if not isinstance(page, IntroductionPage):
|
if not isinstance(page, IntroductionPage):
|
||||||
EMITTER.emit("step_pending")
|
EMITTER.emit("step_pending")
|
||||||
|
|
||||||
|
if page == self.page_completion:
|
||||||
|
self.write_config(self.config_values)
|
||||||
|
self.setup_complete = True
|
||||||
|
|
||||||
|
|
||||||
class CheckboxWithLabel(Gtk.Box):
|
class CheckboxWithLabel(Gtk.Box):
|
||||||
def __init__(self, text: str, blurb_text: str) -> None:
|
def __init__(self, text: str, blurb_text: str) -> None:
|
||||||
|
|||||||
Reference in new issue
Block a user