Fix image chooer can not using in a loop #574

This commit is contained in:
yolain
2024-12-13 12:40:07 +08:00
parent d416ad21f0
commit d56cbf572d
2 changed files with 2 additions and 1 deletions
+1 -1
View File
@@ -1,4 +1,4 @@
__version__ = "1.2.5"
__version__ = "1.2.6"
import yaml
import os
+1
View File
@@ -956,6 +956,7 @@ class imageChooser(PreviewImage):
def chooser(self, prompt=None, my_unique_id=None, extra_pnginfo=None, **kwargs):
id = my_unique_id[0]
id = id.split('.')[len(id.split('.')) - 1] if "." in id else id
if id not in ChooserMessage.stash:
ChooserMessage.stash[id] = {}
my_stash = ChooserMessage.stash[id]