1
0
mirror of https://github.com/d47081/qBittorrent.git synced 2025-01-11 07:18:08 +00:00

WebUI: Fix category save path

PR #19008.
This commit is contained in:
Raymond Ha 2023-05-26 01:52:37 -07:00 committed by GitHub
parent 3fb4e4d293
commit a35dbc6df7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -125,7 +125,7 @@ window.qBittorrent.Download = (function() {
const category = categories[categoryName]; const category = categories[categoryName];
let savePath = defaultSavePath; let savePath = defaultSavePath;
if (category !== undefined) if (category !== undefined)
savePath = (category['savePath'] !== "") ? category['savePath'] : (defaultSavePath + categoryName); savePath = (category['savePath'] !== "") ? category['savePath'] : `${defaultSavePath}/${categoryName}`;
$('savepath').value = savePath; $('savepath').value = savePath;
} }
} }