mirror of
https://github.com/d47081/qBittorrent.git
synced 2025-01-10 23:07:59 +00:00
- Should fix queueing system
This commit is contained in:
parent
cd260198f9
commit
cc5015773b
@ -1049,13 +1049,15 @@ void GUI::configureSession(bool deleteOptions) {
|
|||||||
int max_torrents = options->getMaxActiveTorrents();
|
int max_torrents = options->getMaxActiveTorrents();
|
||||||
int max_downloads = options->getMaxActiveDownloads();
|
int max_downloads = options->getMaxActiveDownloads();
|
||||||
sessionSettings.active_downloads = max_downloads;
|
sessionSettings.active_downloads = max_downloads;
|
||||||
sessionSettings.active_seeds = max_torrents;
|
sessionSettings.active_seeds = -1;
|
||||||
|
sessionSettings.active_limit = max_torrents;
|
||||||
sessionSettings.dont_count_slow_torrents = false;
|
sessionSettings.dont_count_slow_torrents = false;
|
||||||
BTSession->setQueueingEnabled(true);
|
BTSession->setQueueingEnabled(true);
|
||||||
} else {
|
} else {
|
||||||
if(BTSession->isQueueingEnabled()) {
|
if(BTSession->isQueueingEnabled()) {
|
||||||
sessionSettings.active_downloads = -1;
|
sessionSettings.active_downloads = -1;
|
||||||
sessionSettings.active_seeds = -1;
|
sessionSettings.active_seeds = -1;
|
||||||
|
sessionSettings.active_limit = -1;
|
||||||
BTSession->setQueueingEnabled(false);
|
BTSession->setQueueingEnabled(false);
|
||||||
downloadingTorrentTab->hidePriorityColumn(true);
|
downloadingTorrentTab->hidePriorityColumn(true);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user