mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2025-12-18 14:38:04 -06:00
- extending Queueing system to seeding list (unfinished)
This commit is contained in:
17
src/GUI.cpp
17
src/GUI.cpp
@@ -1112,15 +1112,22 @@ void GUI::configureSession(bool deleteOptions) {
|
||||
}
|
||||
// Queueing System
|
||||
if(options->isQueueingSystemEnabled()) {
|
||||
if(!BTSession->isDlQueueingEnabled()) {
|
||||
BTSession->setMaxActiveDlTorrents(options->getMaxActiveDownloads());
|
||||
BTSession->setDlQueueingEnabled(true);
|
||||
if(!BTSession->isQueueingEnabled()) {
|
||||
int max_torrents = options->getMaxActiveTorrents();
|
||||
int max_downloads = options->getMaxActiveDownloads();
|
||||
if(max_torrents < max_downloads)
|
||||
max_torrents = max_downloads;
|
||||
BTSession->setMaxActiveTorrents(max_torrents);
|
||||
BTSession->setMaxActiveDownloads(max_downloads);
|
||||
BTSession->setQueueingEnabled(true);
|
||||
downloadingTorrentTab->hidePriorityColumn(false);
|
||||
finishedTorrentTab->hidePriorityColumn(false);
|
||||
}
|
||||
} else {
|
||||
if(BTSession->isDlQueueingEnabled()) {
|
||||
BTSession->setDlQueueingEnabled(false);
|
||||
if(BTSession->isQueueingEnabled()) {
|
||||
BTSession->setQueueingEnabled(false);
|
||||
downloadingTorrentTab->hidePriorityColumn(true);
|
||||
finishedTorrentTab->hidePriorityColumn(true);
|
||||
}
|
||||
}
|
||||
// Clean up
|
||||
|
||||
Reference in New Issue
Block a user