feat: enhance locations and download categorization

- Fix system proxy fetching logic in download queue
- Expand recognized file formats across Windows, Mac, and Linux
- Automatically assign matching category folder for new downloads
- Add backend command to instantly create category directories on bulk base path selection
This commit is contained in:
NimBold
2026-06-15 18:21:44 +03:30
parent d15e537916
commit 12761caf10
7 changed files with 82 additions and 24 deletions
+7
View File
@@ -415,6 +415,13 @@ export const AddDownloadsModal = () => {
if (active && firstReadyIndex !== null) {
setSelectedItemIndex(firstReadyIndex);
const firstFile = updatedItems[firstReadyIndex].file;
if (firstFile) {
const category = categoryForFileName(firstFile);
const settingsStore = useSettingsStore.getState();
const categoryDir = (settingsStore.downloadDirectories && settingsStore.downloadDirectories[category]) || settingsStore.defaultDownloadPath || '~/Downloads';
setSaveLocation(categoryDir);
}
}
}, 400);