mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-07-30 11:38:50 -07:00
Fix Bandwidth Scheduler. Closes #3376.
This commit is contained in:
parent
dfb2f8b3b3
commit
64ebc5cfd6
3 changed files with 41 additions and 26 deletions
|
@ -208,10 +208,8 @@ void StatusBar::updateAltSpeedsBtn(bool alternative) {
|
|||
|
||||
void StatusBar::toggleAlternativeSpeeds() {
|
||||
Preferences* const pref = Preferences::instance();
|
||||
if (pref->isSchedulerEnabled()) {
|
||||
pref->setSchedulerEnabled(false);
|
||||
if (pref->isSchedulerEnabled())
|
||||
m_bar->showMessage(tr("Manual change of rate limits mode. The scheduler is disabled."), 5000);
|
||||
}
|
||||
BitTorrent::Session::instance()->changeSpeedLimitMode(!pref->isAltBandwidthEnabled());
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue