Generate password box for any settings dest name that end in password

This commit is contained in:
Mizaki 2023-09-21 01:47:08 +01:00
parent 360a9e6308
commit 5684694055

View File

@ -336,6 +336,8 @@ def generate_source_option_tabs(
elif option._guess_type() is str:
if option.choices is not None:
current_widget = generate_combobox(option, layout_grid)
elif option.dest.lower().endswith("password"):
current_widget = generate_password_textbox(option, layout_grid)
else:
current_widget = generate_textbox(option, layout_grid)
tab.widgets[option.dest] = current_widget