Fix options "not set" displaying values

This commit is contained in:
pdxlocations
2025-04-05 22:20:19 -07:00
parent 14913ce5ae
commit 031d74a290
+5 -2
View File
@@ -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