Follow the parent category options

PR #19957.
Closes #19941.
This commit is contained in:
Vladimir Golovnev
2023-11-20 20:37:17 +03:00
committed by GitHub
parent 32fbacf615
commit a1c78a0455
9 changed files with 170 additions and 36 deletions

View File

@@ -1,6 +1,6 @@
/*
* Bittorrent Client using Qt and libtorrent.
* Copyright (C) 2021 Vladimir Golovnev <glassez@yandex.ru>
* Copyright (C) 2021-2023 Vladimir Golovnev <glassez@yandex.ru>
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
@@ -33,6 +33,7 @@
#include <QString>
#include "base/path.h"
#include "downloadpathoption.h"
class QJsonObject;
@@ -40,12 +41,6 @@ namespace BitTorrent
{
struct CategoryOptions
{
struct DownloadPathOption
{
bool enabled;
Path path;
};
Path savePath;
std::optional<DownloadPathOption> downloadPath;
@@ -53,6 +48,5 @@ namespace BitTorrent
QJsonObject toJSON() const;
};
bool operator==(const CategoryOptions::DownloadPathOption &left, const CategoryOptions::DownloadPathOption &right);
bool operator==(const CategoryOptions &left, const CategoryOptions &right);
}