fix delete file from main gallery view

Signed-off-by: Vladimir Mandic <mandic00@live.com>
This commit is contained in:
Vladimir Mandic
2025-06-25 10:30:59 -04:00
parent 82e5848259
commit a5d784f073
5 changed files with 47 additions and 25 deletions
+1 -4
View File
@@ -572,10 +572,7 @@ def update_sampler(p, sd_model, second_pass=False):
if hasattr(sd_model, 'scheduler'):
if sampler_selection == 'None':
return
if sampler_selection is None:
sampler = sd_samplers.all_samplers_map.get("UniPC")
else:
sampler = sd_samplers.all_samplers_map.get(sampler_selection, None)
sampler = sd_samplers.find_sampler(sampler_selection)
if sampler is None:
shared.log.warning(f'Sampler: sampler="{sampler_selection}" not found')
sampler = sd_samplers.all_samplers_map.get("UniPC")