feat(desktop): modernize download management

This commit is contained in:
NimBold
2026-06-12 20:33:17 +03:30
parent 3074438147
commit a5022fbf8a
9 changed files with 492 additions and 383 deletions
+2 -1
View File
@@ -51,6 +51,7 @@ export interface DownloadItem {
fraction?: number;
speed?: string;
eta?: string;
size?: string;
category: DownloadCategory;
dateAdded: string;
// Advanced Settings
@@ -146,7 +147,7 @@ export const useDownloadStore = create<DownloadState>((set, get) => ({
},
processQueue: async () => {
const { downloads, updateDownload } = get();
const { maxConcurrentDownloads, globalSpeedLimit, defaultDownloadPath } = useSettingsStore.getState();
const { maxConcurrentDownloads } = useSettingsStore.getState();
const activeCount = downloads.filter(d => d.status === 'downloading').length;
if (activeCount >= maxConcurrentDownloads) return;