mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-07-16 02:03:07 -07:00
[Web UI] Fix max_ratio precision. Closes #4707
This commit is contained in:
parent
193913129f
commit
87dc9a4a18
3 changed files with 4 additions and 4 deletions
|
@ -347,7 +347,7 @@ void prefjson::setPreferences(const QString& json)
|
|||
pref->setIgnoreSlowTorrentsForQueueing(m["dont_count_slow_torrents"].toBool());
|
||||
// Share Ratio Limiting
|
||||
if (m.contains("max_ratio_enabled"))
|
||||
pref->setGlobalMaxRatio(m["max_ratio"].toInt());
|
||||
pref->setGlobalMaxRatio(m["max_ratio"].toReal());
|
||||
else
|
||||
pref->setGlobalMaxRatio(-1);
|
||||
if (m.contains("max_ratio_act"))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue