diff --git a/src/GUI.cpp b/src/GUI.cpp index d2e90509d..d0ff8e6a4 100644 --- a/src/GUI.cpp +++ b/src/GUI.cpp @@ -947,13 +947,7 @@ void GUI::createSystrayDelayed() { } void GUI::updateAltSpeedsBtn(bool alternative) { - if(alternative) { - actionUse_alternative_speed_limits->setIcon(QIcon(":/Icons/slow.png")); - actionUse_alternative_speed_limits->setText(tr("Use normal speed limits")); - } else { - actionUse_alternative_speed_limits->setIcon(QIcon(":/Icons/slow_off.png")); - actionUse_alternative_speed_limits->setText(tr("Use alternative speed limits")); - } + actionUse_alternative_speed_limits->setChecked(alternative); } QMenu* GUI::getTrayIconMenu() { @@ -965,6 +959,7 @@ QMenu* GUI::getTrayIconMenu() { myTrayIconMenu->addAction(actionDownload_from_URL); myTrayIconMenu->addSeparator(); updateAltSpeedsBtn(Preferences::isAltBandwidthEnabled()); + actionUse_alternative_speed_limits->setChecked(Preferences::isAltBandwidthEnabled()); myTrayIconMenu->addAction(actionUse_alternative_speed_limits); myTrayIconMenu->addAction(actionSet_global_download_limit); myTrayIconMenu->addAction(actionSet_global_upload_limit); diff --git a/src/statusbar.h b/src/statusbar.h index fcf14d92b..a81aacfe6 100644 --- a/src/statusbar.h +++ b/src/statusbar.h @@ -195,6 +195,7 @@ public slots: if(alternative) { altSpeedsBtn->setIcon(QIcon(":/Icons/slow.png")); altSpeedsBtn->setToolTip(tr("Click to disable alternative speed limits")); + altSpeedsBtn->setDown(true); } else { altSpeedsBtn->setIcon(QIcon(":/Icons/slow_off.png")); altSpeedsBtn->setToolTip(tr("Click to enable alternative speed limits")); diff --git a/src/ui/mainwindow.ui b/src/ui/mainwindow.ui index 4e842ff91..43d4f4860 100644 --- a/src/ui/mainwindow.ui +++ b/src/ui/mainwindow.ui @@ -269,12 +269,14 @@ - - - :/Icons/slow_off.png:/Icons/slow_off.png + + true - Use alternative speed limits + Alternative speed limits + + + Alternative speed limits