Fix a bug after c6901aba9f

This commit is contained in:
oobabooga 2025-04-18 06:51:28 -07:00
parent 1c4a2c9a71
commit ef9910c767

View file

@ -69,10 +69,8 @@ def set_interface_arguments(extensions, bool_active):
def get_boolean_arguments(active=False):
exclude = shared.deprecated_args
cmd_list = vars(shared.args)
bool_list = sorted([k for k in cmd_list if type(cmd_list[k]) is bool and k not in exclude + ui.list_model_elements()])
bool_list = sorted([k for k in cmd_list if type(cmd_list[k]) is bool and k not in ui.list_model_elements()])
bool_active = [k for k in bool_list if vars(shared.args)[k]]
if active: