mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2025-12-20 07:27:22 -06:00
Use TorrentTempData for overriding "add torrents paused" functionality
This commit is contained in:
@@ -160,6 +160,14 @@ QString TorrentTempData::getQueuedPath(const QString &hash) {
|
||||
return i->queuedPath;
|
||||
}
|
||||
|
||||
void TorrentTempData::setAddPaused(const QString &hash, const bool &paused) {
|
||||
data[hash].add_paused = paused;
|
||||
}
|
||||
|
||||
bool TorrentTempData::isAddPaused(const QString &hash) {
|
||||
return data.value(hash).add_paused;
|
||||
}
|
||||
|
||||
void HiddenData::addData(const QString &hash) {
|
||||
data[hash] = false;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user