diff --git a/src/webui/www/private/newcategory.html b/src/webui/www/private/newcategory.html
index 3abdc6f2a..9bf5b95c0 100644
--- a/src/webui/www/private/newcategory.html
+++ b/src/webui/www/private/newcategory.html
@@ -3,7 +3,7 @@
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/webui/www/private/scripts/client.js b/src/webui/www/private/scripts/client.js
index 02e8ae354..83fdd1757 100644
--- a/src/webui/www/private/scripts/client.js
+++ b/src/webui/www/private/scripts/client.js
@@ -832,12 +832,15 @@ window.addEventListener("DOMContentLoaded", (event) => {
if (categoryData === undefined) {
window.qBittorrent.Client.categoryMap.set(responseName, {
savePath: responseData.savePath,
+ downloadPath: responseData.download_path ?? null,
torrents: new Set()
});
}
else {
- // only the save path can change for existing categories
- categoryData.savePath = responseData.savePath;
+ if (responseData.savePath !== undefined)
+ categoryData.savePath = responseData.savePath;
+ if (responseData.download_path !== undefined)
+ categoryData.downloadPath = responseData.download_path;
}
}
updateCategories = true;
diff --git a/src/webui/www/private/scripts/mocha-init.js b/src/webui/www/private/scripts/mocha-init.js
index 61b9cb755..c88c84b8d 100644
--- a/src/webui/www/private/scripts/mocha-init.js
+++ b/src/webui/www/private/scripts/mocha-init.js
@@ -882,7 +882,7 @@ const initializeWindows = () => {
paddingVertical: 0,
paddingHorizontal: 0,
width: window.qBittorrent.Dialog.limitWidthToViewport(400),
- height: 150
+ height: 200
});
};
@@ -923,7 +923,7 @@ const initializeWindows = () => {
paddingVertical: 0,
paddingHorizontal: 0,
width: window.qBittorrent.Dialog.limitWidthToViewport(400),
- height: 150
+ height: 200
});
};
@@ -945,7 +945,7 @@ const initializeWindows = () => {
paddingVertical: 0,
paddingHorizontal: 0,
width: window.qBittorrent.Dialog.limitWidthToViewport(400),
- height: 150
+ height: 200
});
};
@@ -953,8 +953,7 @@ const initializeWindows = () => {
const contentURL = new URL("newcategory.html", window.location);
contentURL.search = new URLSearchParams({
action: "edit",
- categoryName: category,
- savePath: categoryMap.get(category).savePath
+ categoryName: category
});
new MochaUI.Window({
id: "editCategoryPage",
@@ -968,7 +967,7 @@ const initializeWindows = () => {
paddingVertical: 0,
paddingHorizontal: 0,
width: window.qBittorrent.Dialog.limitWidthToViewport(400),
- height: 150
+ height: 200
});
};