Sort folder lists in a case-insensitive manner across download manager, file monitor, and cache services

This commit is contained in:
Will Miao
2025-02-16 06:57:32 +08:00
parent c12d2ad59a
commit 1d91251e24
3 changed files with 4 additions and 5 deletions

View File

@@ -123,7 +123,7 @@ class DownloadManager:
await cache.resort()
all_folders = set(cache.folders)
all_folders.add(relative_path)
cache.folders = sorted(list(all_folders))
cache.folders = sorted(list(all_folders), key=lambda x: x.lower())
# Report 100% completion
if progress_callback: