From 4e93eb440c080d4d87551e52fac75cb2255a3fc5 Mon Sep 17 00:00:00 2001 From: quexeky Date: Mon, 6 Jan 2025 20:56:19 +1100 Subject: [PATCH] feat(download manager): Added UI to change download threads Co-authored-by: AdenMGB <140392385+AdenMGB@users.noreply.github.com> Signed-off-by: quexeky --- pages/settings/downloads.vue | 46 ++++++++++++++++++++++++++++++++++++ 1 file changed, 46 insertions(+) diff --git a/pages/settings/downloads.vue b/pages/settings/downloads.vue index d7e7d53..c5d0de3 100644 --- a/pages/settings/downloads.vue +++ b/pages/settings/downloads.vue @@ -59,6 +59,45 @@ +
+

+ Download Settings +

+

+ Configure how Drop downloads games and other content. +

+ +
+ +
+ +
+

+ The maximum number of concurrent download threads. Higher values may download faster but use more system resources. Default is 4. +

+
+ +
+ +
+
@@ -180,6 +219,9 @@ const createDirectoryLoading = ref(false); const dirs = ref>([]); +const downloadThreads = ref(4); +const downloadThreadsChanged = computed(() => downloadThreads.value !== 4); + async function updateDirs() { const newDirs = await invoke>("fetch_download_dir_stats"); dirs.value = newDirs; @@ -235,4 +277,8 @@ async function deleteDirectory(index: number) { await invoke("delete_download_dir", { index }); await updateDirs(); } + +async function saveDownloadThreads() { + //Would save download threads downloadThreads.value); +}