mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2025-12-18 22:47:21 -06:00
Remove speed limit checkbox in Options dialog
This unifies speed limit UI elements throughout the program.
This commit is contained in:
committed by
sledgehammer999
parent
aac8bfc398
commit
780ece0c25
@@ -2660,7 +2660,7 @@ int Session::downloadSpeedLimit() const
|
||||
: globalDownloadSpeedLimit();
|
||||
}
|
||||
|
||||
void Session::setDownloadSpeedLimit(int limit)
|
||||
void Session::setDownloadSpeedLimit(const int limit)
|
||||
{
|
||||
if (isAltGlobalSpeedLimitEnabled())
|
||||
setAltGlobalDownloadSpeedLimit(limit);
|
||||
@@ -2675,7 +2675,7 @@ int Session::uploadSpeedLimit() const
|
||||
: globalUploadSpeedLimit();
|
||||
}
|
||||
|
||||
void Session::setUploadSpeedLimit(int limit)
|
||||
void Session::setUploadSpeedLimit(const int limit)
|
||||
{
|
||||
if (isAltGlobalSpeedLimitEnabled())
|
||||
setAltGlobalUploadSpeedLimit(limit);
|
||||
@@ -2688,7 +2688,7 @@ bool Session::isAltGlobalSpeedLimitEnabled() const
|
||||
return m_isAltGlobalSpeedLimitEnabled;
|
||||
}
|
||||
|
||||
void Session::setAltGlobalSpeedLimitEnabled(bool enabled)
|
||||
void Session::setAltGlobalSpeedLimitEnabled(const bool enabled)
|
||||
{
|
||||
if (enabled == isAltGlobalSpeedLimitEnabled()) return;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user