diff --git a/basicswap/basicswap.py b/basicswap/basicswap.py index 7f132d3..cc565c1 100644 --- a/basicswap/basicswap.py +++ b/basicswap/basicswap.py @@ -11269,6 +11269,16 @@ class BasicSwap(BaseApp, BSXNetwork, UIApp): settings_copy["notifications_outgoing_transactions"] = new_value settings_changed = True + if "notifications_swap_completed" in data: + new_value = data["notifications_swap_completed"] + ensure( + isinstance(new_value, bool), + "New notifications_swap_completed value not boolean", + ) + if settings_copy.get("notifications_swap_completed", True) != new_value: + settings_copy["notifications_swap_completed"] = new_value + settings_changed = True + if "notifications_duration" in data: new_value = data["notifications_duration"] ensure( @@ -11283,6 +11293,15 @@ class BasicSwap(BaseApp, BSXNetwork, UIApp): settings_copy["notifications_duration"] = new_value settings_changed = True + if "check_updates" in data: + new_value = data["check_updates"] + ensure( + isinstance(new_value, bool), "New check_updates value not boolean" + ) + if settings_copy.get("check_updates", True) != new_value: + settings_copy["check_updates"] = new_value + settings_changed = True + if settings_changed: settings_path = os.path.join(self.data_dir, cfg.CONFIG_FILENAME) settings_path_new = settings_path + ".new" diff --git a/basicswap/templates/settings.html b/basicswap/templates/settings.html index ce8b7a7..716dad0 100644 --- a/basicswap/templates/settings.html +++ b/basicswap/templates/settings.html @@ -492,7 +492,7 @@