mirror of
https://github.com/lllyasviel/Fooocus.git
synced 2026-08-16 13:13:16 +02:00
fix some sorting problem
This commit is contained in:
+1
-1
@@ -1 +1 @@
|
|||||||
version = '2.1.808'
|
version = '2.1.809'
|
||||||
|
|||||||
@@ -31,6 +31,7 @@ def try_load_sorted_styles(style_names, default_selected):
|
|||||||
|
|
||||||
|
|
||||||
def sort_styles(selected):
|
def sort_styles(selected):
|
||||||
|
global all_styles
|
||||||
unselected = [y for y in all_styles if y not in selected]
|
unselected = [y for y in all_styles if y not in selected]
|
||||||
sorted_styles = selected + unselected
|
sorted_styles = selected + unselected
|
||||||
try:
|
try:
|
||||||
@@ -39,6 +40,7 @@ def sort_styles(selected):
|
|||||||
except Exception as e:
|
except Exception as e:
|
||||||
print('Write style sorting failed.')
|
print('Write style sorting failed.')
|
||||||
print(e)
|
print(e)
|
||||||
|
all_styles = sorted_styles
|
||||||
return gr.CheckboxGroup.update(choices=sorted_styles)
|
return gr.CheckboxGroup.update(choices=sorted_styles)
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -1,3 +1,7 @@
|
|||||||
|
# 2.1.809
|
||||||
|
|
||||||
|
* fix some sorting problem.
|
||||||
|
|
||||||
# 2.1.808
|
# 2.1.808
|
||||||
|
|
||||||
* Aspect ratios now show aspect ratios.
|
* Aspect ratios now show aspect ratios.
|
||||||
|
|||||||
Reference in New Issue
Block a user