mirror of
https://github.com/AUTOMATIC1111/stable-diffusion-webui.git
synced 2025-12-22 15:16:47 -08:00
possible fix for dictionary changed size during iteration
This commit is contained in:
@@ -30,7 +30,8 @@ class ExtraNetworksPageCheckpoints(ui_extra_networks.ExtraNetworksPage):
|
|||||||
}
|
}
|
||||||
|
|
||||||
def list_items(self):
|
def list_items(self):
|
||||||
for index, name in enumerate(sd_models.checkpoints_list):
|
names = list(sd_models.checkpoints_list)
|
||||||
|
for index, name in enumerate(names):
|
||||||
yield self.create_item(name, index)
|
yield self.create_item(name, index)
|
||||||
|
|
||||||
def allowed_directories_for_previews(self):
|
def allowed_directories_for_previews(self):
|
||||||
|
|||||||
Reference in New Issue
Block a user