mirror of
https://github.com/AUTOMATIC1111/stable-diffusion-webui.git
synced 2025-08-04 19:22:32 +00:00
Reformat
This commit is contained in:
@@ -162,12 +162,14 @@ def apply_override(field, boolean: bool = False):
|
|||||||
if boolean:
|
if boolean:
|
||||||
x = True if x.lower() == "true" else False
|
x = True if x.lower() == "true" else False
|
||||||
p.override_settings[field] = x
|
p.override_settings[field] = x
|
||||||
|
|
||||||
return fun
|
return fun
|
||||||
|
|
||||||
|
|
||||||
def boolean_choice(reverse: bool = False):
|
def boolean_choice(reverse: bool = False):
|
||||||
def choice():
|
def choice():
|
||||||
return ["False", "True"] if reverse else ["True", "False"]
|
return ["False", "True"] if reverse else ["True", "False"]
|
||||||
|
|
||||||
return choice
|
return choice
|
||||||
|
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user