fix extra_options_section misbehaving when there's just one extra_options element
This commit is contained in:
parent
251140fc88
commit
01997f45ba
|
@ -50,7 +50,8 @@ class ExtraOptionsSection(scripts.Script):
|
||||||
self.infotext_fields.append((comp, setting_infotext_name))
|
self.infotext_fields.append((comp, setting_infotext_name))
|
||||||
|
|
||||||
def get_settings_values():
|
def get_settings_values():
|
||||||
return [ui_settings.get_value_for_setting(key) for key in self.setting_names]
|
res = [ui_settings.get_value_for_setting(key) for key in self.setting_names]
|
||||||
|
return res[0] if len(res) == 1 else res
|
||||||
|
|
||||||
interface.load(fn=get_settings_values, inputs=[], outputs=self.comps, queue=False, show_progress=False)
|
interface.load(fn=get_settings_values, inputs=[], outputs=self.comps, queue=False, show_progress=False)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue