mirror of
https://git.deluge-torrent.org/deluge
synced 2025-08-05 16:08:40 +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
|
return
|
||||||
rate_dialog.destroy()
|
rate_dialog.destroy()
|
||||||
|
|
||||||
|
value = float(value) # Make sure the value is a float
|
||||||
|
|
||||||
# Set the ratio in the core and remember the setting
|
# Set the ratio in the core and remember the setting
|
||||||
self.core.set_ratio(self.unique_ID, value)
|
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
|
# Update the ratios list if necessary
|
||||||
if value not in self.config.get("ratios") and value >= 1:
|
if value not in self.config.get("ratios") and value >= 1:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue