fix some sorting problem
This commit is contained in:
parent
ad1ae0fd48
commit
97a6e87d18
@ -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):
|
||||
global all_styles
|
||||
unselected = [y for y in all_styles if y not in selected]
|
||||
sorted_styles = selected + unselected
|
||||
try:
|
||||
@ -39,6 +40,7 @@ def sort_styles(selected):
|
||||
except Exception as e:
|
||||
print('Write style sorting failed.')
|
||||
print(e)
|
||||
all_styles = sorted_styles
|
||||
return gr.CheckboxGroup.update(choices=sorted_styles)
|
||||
|
||||
|
||||
|
||||
@ -1,3 +1,7 @@
|
||||
# 2.1.809
|
||||
|
||||
* fix some sorting problem.
|
||||
|
||||
# 2.1.808
|
||||
|
||||
* Aspect ratios now show aspect ratios.
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user