From 9fc912fba4b651c9ad5a008c5d91276da1b448f6 Mon Sep 17 00:00:00 2001 From: Ivan Date: Sun, 28 Sep 2025 15:38:25 -0500 Subject: [PATCH] Add config saving feedback in settings.py with print statements and update button label to "Save Config". --- ren_browser/ui/settings.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/ren_browser/ui/settings.py b/ren_browser/ui/settings.py index e2b7954..1eab62c 100644 --- a/ren_browser/ui/settings.py +++ b/ren_browser/ui/settings.py @@ -36,21 +36,23 @@ def open_settings_tab(page: ft.Page, tab_manager): try: success = storage.save_config(config_field.value) if success: + print("Config saved successfully. Please restart the app.") page.snack_bar = ft.SnackBar( ft.Text("Config saved successfully. Please restart the app."), open=True, ) else: + print("Error saving config: Storage operation failed") page.snack_bar = ft.SnackBar( ft.Text("Error saving config: Storage operation failed"), open=True ) except Exception as ex: + print(f"Error saving config: {ex}") page.snack_bar = ft.SnackBar( ft.Text(f"Error saving config: {ex}"), open=True ) - page.update() - save_btn = ft.ElevatedButton("Save and Restart", on_click=on_save_config) + save_btn = ft.ElevatedButton("Save Config", on_click=on_save_config) error_field = ft.TextField( label="Error Logs", value="",