mirror of
https://github.com/willmiao/ComfyUI-Lora-Manager.git
synced 2026-03-26 15:38:52 -03:00
Enhance DownloadManager to update hash index with new LoRA entries, improving file tracking during downloads.
This commit is contained in:
@@ -136,6 +136,9 @@ class DownloadManager:
|
|||||||
all_folders.add(relative_path)
|
all_folders.add(relative_path)
|
||||||
cache.folders = sorted(list(all_folders), key=lambda x: x.lower())
|
cache.folders = sorted(list(all_folders), key=lambda x: x.lower())
|
||||||
|
|
||||||
|
# Update the hash index with the new LoRA entry
|
||||||
|
self.file_monitor.scanner._hash_index.add_entry(metadata_dict['sha256'], metadata_dict['file_path'])
|
||||||
|
|
||||||
# Report 100% completion
|
# Report 100% completion
|
||||||
if progress_callback:
|
if progress_callback:
|
||||||
await progress_callback(100)
|
await progress_callback(100)
|
||||||
|
|||||||
Reference in New Issue
Block a user