Skip to content

Commit 57865e1

Browse files
authored
Merge pull request #24 from ay-ex/fix_load_models_by_full_name_match
add more precise class name match
2 parents bb3642b + d544ad4 commit 57865e1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ltk/widgets.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -626,7 +626,7 @@ def load(cls):
626626
""" Load all models of this type from local storage """
627627
return [
628628
cls(key) for key in window.Object.keys(cls.__store)
629-
if key.startswith(cls.__name__)
629+
if key.startswith(f"{cls.__name__}-")
630630
]
631631

632632

0 commit comments

Comments
 (0)