showing status stopped if not connected
This commit is contained in:
parent
838bbfd0b7
commit
38b9b59916
|
@ -766,8 +766,6 @@ class FileTransfersTooltip(BaseTooltip):
|
||||||
if file_props['connected'] == False:
|
if file_props['connected'] == False:
|
||||||
if file_props['completed']:
|
if file_props['completed']:
|
||||||
status = 'completed'
|
status = 'completed'
|
||||||
else:
|
|
||||||
status = 'stopped'
|
|
||||||
else:
|
else:
|
||||||
if file_props.has_key('stopped') and \
|
if file_props.has_key('stopped') and \
|
||||||
file_props['stopped'] == True:
|
file_props['stopped'] == True:
|
||||||
|
@ -780,6 +778,9 @@ class FileTransfersTooltip(BaseTooltip):
|
||||||
status = 'stalled'
|
status = 'stalled'
|
||||||
else:
|
else:
|
||||||
status = 'transfering'
|
status = 'transfering'
|
||||||
|
else:
|
||||||
|
status = 'stopped'
|
||||||
|
|
||||||
text += status
|
text += status
|
||||||
self.text_lable.set_markup(text)
|
self.text_lable.set_markup(text)
|
||||||
self.hbox.add(self.text_lable)
|
self.hbox.add(self.text_lable)
|
||||||
|
|
Loading…
Reference in New Issue