From 0962c5b2843f5d202ab5012985e965b716c0f8ac Mon Sep 17 00:00:00 2001 From: pdxlocations Date: Wed, 22 Jan 2025 10:43:42 -0800 Subject: [PATCH] break out of settings --- settings.py | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/settings.py b/settings.py index 55e9daf..b7b6a42 100644 --- a/settings.py +++ b/settings.py @@ -111,32 +111,37 @@ def settings_menu(sdscr, interface): selected_option = options[selected_index] if selected_option == "Exit": + sdscr.clear() break elif selected_option == "Reboot": confirmation = get_bool_selection("Are you sure you want to Reboot?", 0) if confirmation == "True": settings_reboot(interface) logging.info(f"Node Reboot Requested by menu") - continue - + sdscr.clear() + break elif selected_option == "Reset Node DB": confirmation = get_bool_selection("Are you sure you want to Reset Node DB?", 0) if confirmation == "True": settings_reset_nodedb(interface) logging.info(f"Node DB Reset Requested by menu") - continue + sdscr.clear() + break elif selected_option == "Shutdown": confirmation = get_bool_selection("Are you sure you want to Shutdown?", 0) if confirmation == "True": settings_shutdown(interface) logging.info(f"Node Shutdown Requested by menu") - continue + sdscr.clear() + break elif selected_option == "Factory Reset": confirmation = get_bool_selection("Are you sure you want to Factory Reset?", 0) if confirmation == "True": settings_factory_reset(interface) logging.info(f"Factory Reset Requested by menu") - continue + sdscr.clear() + break + field_info = current_menu.get(selected_option) if isinstance(field_info, tuple):