Show a Paused state when a Checking torrent is paused

This commit is contained in:
Andrew Resch 2009-04-19 19:50:39 +00:00
parent 2589baf0e2
commit 6c9dd4d5c9

View File

@ -362,7 +362,10 @@ class Torrent:
return return
if ltstate == LTSTATE["Queued"] or ltstate == LTSTATE["Checking"]: if ltstate == LTSTATE["Queued"] or ltstate == LTSTATE["Checking"]:
self.state = "Checking" if self.handle.is_paused():
self.state = "Paused"
else:
self.state = "Checking"
return return
elif ltstate == LTSTATE["Downloading"] or ltstate == LTSTATE["Downloading Metadata"]: elif ltstate == LTSTATE["Downloading"] or ltstate == LTSTATE["Downloading Metadata"]:
self.state = "Downloading" self.state = "Downloading"