Use casefold
This commit is contained in:
parent
5684694055
commit
c6522865ab
@ -336,7 +336,7 @@ 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"):
|
||||
elif option.dest.casefold().endswith("password"):
|
||||
current_widget = generate_password_textbox(option, layout_grid)
|
||||
else:
|
||||
current_widget = generate_textbox(option, layout_grid)
|
||||
|
Loading…
x
Reference in New Issue
Block a user