mirror of
https://git.deluge-torrent.org/deluge
synced 2025-08-24 19:30:15 +00:00
Consider 0 unlimited when displaying limits in the statusbar
This commit is contained in:
parent
145f402aa2
commit
099415776d
2 changed files with 4 additions and 3 deletions
|
@ -4,6 +4,7 @@
|
||||||
|
|
||||||
==== GtkUI ====
|
==== GtkUI ====
|
||||||
* replace & with & in the details tab to ensure there are no markup errors
|
* replace & with & in the details tab to ensure there are no markup errors
|
||||||
|
* Consider 0 unlimited when displaying limits in the statusbar
|
||||||
|
|
||||||
==== Web ====
|
==== Web ====
|
||||||
* Fix #1046 changing auto managed via the details tab
|
* Fix #1046 changing auto managed via the details tab
|
||||||
|
|
|
@ -342,7 +342,7 @@ class StatusBar(component.Component):
|
||||||
|
|
||||||
def update_download_label(self):
|
def update_download_label(self):
|
||||||
# Set the download speed label
|
# Set the download speed label
|
||||||
if self.max_download_speed < 0:
|
if self.max_download_speed <= 0:
|
||||||
label_string = "%s/s" % self.download_rate
|
label_string = "%s/s" % self.download_rate
|
||||||
else:
|
else:
|
||||||
label_string = "%s/s (%s %s)" % (
|
label_string = "%s/s (%s %s)" % (
|
||||||
|
@ -352,7 +352,7 @@ class StatusBar(component.Component):
|
||||||
|
|
||||||
def update_upload_label(self):
|
def update_upload_label(self):
|
||||||
# Set the upload speed label
|
# Set the upload speed label
|
||||||
if self.max_upload_speed < 0:
|
if self.max_upload_speed <= 0:
|
||||||
label_string = "%s/s" % self.upload_rate
|
label_string = "%s/s" % self.upload_rate
|
||||||
else:
|
else:
|
||||||
label_string = "%s/s (%s %s)" % (
|
label_string = "%s/s (%s %s)" % (
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue