From 031d74a2909ee6638a091fee61ddf2e2016c5b45 Mon Sep 17 00:00:00 2001 From: pdxlocations Date: Sat, 5 Apr 2025 22:20:19 -0700 Subject: [PATCH] Fix options "not set" displaying values --- contact/ui/control_ui.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/contact/ui/control_ui.py b/contact/ui/control_ui.py index 268cec6..1c534da 100644 --- a/contact/ui/control_ui.py +++ b/contact/ui/control_ui.py @@ -565,8 +565,11 @@ def settings_menu(stdscr, interface): state.start_index.pop() elif field.type == 8: # Handle boolean type - new_value = get_list_input(human_readable_name, str(current_value), ["True", "False"]) - new_value = new_value == "True" or new_value is True + new_value = get_list_input(human_readable_name, str(current_value), ["True", "False"]) + if new_value == "Not Set": + pass # Leave it as-is + else: + new_value = new_value == "True" or new_value is True state.start_index.pop() elif field.label == field.LABEL_REPEATED: # Handle repeated field - Not currently used