mirror of
https://git.deluge-torrent.org/deluge
synced 2025-04-20 19:44:52 +00:00
Fix double values in desired ratio list
This commit is contained in:
parent
7c81ee68f1
commit
cd1de4388c
1 changed files with 3 additions and 1 deletions
|
@ -107,9 +107,11 @@ class DesiredRatio:
|
|||
return
|
||||
rate_dialog.destroy()
|
||||
|
||||
value = float(value) # Make sure the value is a float
|
||||
|
||||
# Set the ratio in the core and remember the setting
|
||||
self.core.set_ratio(self.unique_ID, value)
|
||||
self.set_ratios[self.unique_ID] = float(value)
|
||||
self.set_ratios[self.unique_ID] = value
|
||||
|
||||
# Update the ratios list if necessary
|
||||
if value not in self.config.get("ratios") and value >= 1:
|
||||
|
|
Loading…
Add table
Reference in a new issue