mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-07-13 00:33:09 -07:00
- Queueing system should work fine now (port is complete, needs testing)
This commit is contained in:
parent
f3729fbae6
commit
9b67807926
11 changed files with 105 additions and 181 deletions
11
src/GUI.cpp
11
src/GUI.cpp
|
@ -1035,7 +1035,6 @@ void GUI::configureSession(bool deleteOptions) {
|
|||
if(options->isQueueingSystemEnabled()) {
|
||||
if(!BTSession->isQueueingEnabled()) {
|
||||
downloadingTorrentTab->hidePriorityColumn(false);
|
||||
finishedTorrentTab->hidePriorityColumn(false);
|
||||
actionDecreasePriority->setVisible(true);
|
||||
actionIncreasePriority->setVisible(true);
|
||||
prioSeparator->setVisible(true);
|
||||
|
@ -1056,8 +1055,6 @@ void GUI::configureSession(bool deleteOptions) {
|
|||
sessionSettings.active_seeds = -1;
|
||||
BTSession->setQueueingEnabled(false);
|
||||
downloadingTorrentTab->hidePriorityColumn(true);
|
||||
finishedTorrentTab->hidePriorityColumn(true);
|
||||
actionDecreasePriority->setVisible(false);
|
||||
actionIncreasePriority->setVisible(false);
|
||||
prioSeparator->setVisible(false);
|
||||
prioSeparator2->setVisible(false);
|
||||
|
@ -1208,7 +1205,7 @@ void GUI::togglePausedState(QString hash) {
|
|||
if(tabs->currentIndex() == 1)
|
||||
inDownloadList = false;
|
||||
QTorrentHandle h = BTSession->getTorrentHandle(hash);
|
||||
if(BTSession->isPaused(hash) && !(BTSession->isQueueingEnabled() && (BTSession->isDownloadQueued(hash) || BTSession->isUploadQueued(hash)))) {
|
||||
if(BTSession->isPaused(hash)) {
|
||||
BTSession->resumeTorrent(hash);
|
||||
if(inDownloadList) {
|
||||
downloadingTorrentTab->resumeTorrent(hash);
|
||||
|
@ -1268,9 +1265,6 @@ void GUI::on_actionIncreasePriority_triggered() {
|
|||
if(inDownloadList) {
|
||||
BTSession->increaseDlTorrentPriority(hash);
|
||||
downloadingTorrentTab->updateDlList();
|
||||
} else {
|
||||
BTSession->increaseUpTorrentPriority(hash);
|
||||
finishedTorrentTab->updateFinishedList();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -1291,9 +1285,6 @@ void GUI::on_actionDecreasePriority_triggered() {
|
|||
if(inDownloadList) {
|
||||
BTSession->decreaseDlTorrentPriority(hash);
|
||||
downloadingTorrentTab->updateDlList();
|
||||
} else {
|
||||
BTSession->decreaseUpTorrentPriority(hash);
|
||||
finishedTorrentTab->updateFinishedList();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue