fix(settings): Broken command invoke logic in settings/downloads.vue

This commit is contained in:
quexeky
2025-01-14 07:57:33 +11:00
parent 604d5b5884
commit 9e29aa7a76
2 changed files with 1 additions and 4 deletions

View File

@ -90,7 +90,6 @@
<div class="mt-6">
<button
type="button"
:disabled="!downloadThreadsChanged"
@click="saveDownloadThreads"
class="inline-flex items-center rounded-md bg-blue-600 px-3 py-2 text-sm font-semibold text-white shadow-sm hover:bg-blue-500 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-blue-600 disabled:bg-blue-600/50 disabled:cursor-not-allowed"
>
@ -280,6 +279,6 @@ async function deleteDirectory(index: number) {
async function saveDownloadThreads() {
//Would save download threads downloadThreads.value);
await invoke("amend_settings", { newSettings: { max_download_threads: downloadThreads.value } })
await invoke("update_settings", { newSettings: { maxDownloadThreads: downloadThreads.value } })
}
</script>