mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-07-13 00:33:09 -07:00
Improve BandwidthScheduler
Don't disable scheduler when manually switching speed limits. Closes #7306.
This commit is contained in:
parent
bbe7821483
commit
93f5d4058d
6 changed files with 122 additions and 103 deletions
|
@ -1293,7 +1293,7 @@ static bool dockClickHandler(id self, SEL cmd, ...)
|
|||
}
|
||||
|
||||
void MainWindow::setupDockClickHandler()
|
||||
{
|
||||
{
|
||||
dockMainWindowHandle = this;
|
||||
overrideDockClickHandler(dockClickHandler);
|
||||
}
|
||||
|
@ -1831,8 +1831,6 @@ void MainWindow::handleUpdateCheckFinished(bool updateAvailable, QString newVers
|
|||
void MainWindow::toggleAlternativeSpeeds()
|
||||
{
|
||||
BitTorrent::Session *const session = BitTorrent::Session::instance();
|
||||
if (session->isBandwidthSchedulerEnabled())
|
||||
m_statusBar->showMessage(tr("Manual change of rate limits mode. The scheduler is disabled."), 5000);
|
||||
session->setAltGlobalSpeedLimitEnabled(!session->isAltGlobalSpeedLimitEnabled());
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue