mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2025-12-17 22:18:05 -06:00
[Web UI] Fix max_ratio precision. Closes #4707
This commit is contained in:
@@ -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"))
|
||||
|
||||
Reference in New Issue
Block a user