This commit is contained in:
Thomas Piccirello 2025-07-04 20:11:09 +08:00 committed by GitHub
commit d62446ecb5
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 7 additions and 2 deletions

View file

@ -1,5 +1,10 @@
# WebAPI Changelog # WebAPI Changelog
## 2.11.10
* [#22932](https://github.com/qbittorrent/qBittorrent/pull/22932)
* `torrents/categories` and `sync/maindata` now serialize categories' `downloadPath` to `null`, rather than `undefined`
## 2.11.9 ## 2.11.9
* [#21015](https://github.com/qbittorrent/qBittorrent/pull/21015) * [#21015](https://github.com/qbittorrent/qBittorrent/pull/21015)

View file

@ -52,7 +52,7 @@ BitTorrent::CategoryOptions BitTorrent::CategoryOptions::fromJSON(const QJsonObj
QJsonObject BitTorrent::CategoryOptions::toJSON() const QJsonObject BitTorrent::CategoryOptions::toJSON() const
{ {
QJsonValue downloadPathValue = QJsonValue::Undefined; QJsonValue downloadPathValue = QJsonValue::Null;
if (downloadPath) if (downloadPath)
{ {
if (downloadPath->enabled) if (downloadPath->enabled)

View file

@ -53,7 +53,7 @@
#include "base/utils/version.h" #include "base/utils/version.h"
#include "api/isessionmanager.h" #include "api/isessionmanager.h"
inline const Utils::Version<3, 2> API_VERSION {2, 11, 9}; inline const Utils::Version<3, 2> API_VERSION {2, 11, 10};
class APIController; class APIController;
class AuthController; class AuthController;