initial fixes for file transfers - messages, widgets
This commit is contained in:
parent
7209dfae72
commit
bfd2a92dde
11 changed files with 245 additions and 230 deletions
|
@ -91,7 +91,7 @@ class Profile(basecontact.BaseContact):
|
|||
ft = self._file_transfers[(friend_num, file_num)]
|
||||
if type(ft) is SendTransfer:
|
||||
self._paused_file_transfers[ft.get_id()] = [ft.get_path(), friend_num, False, -1]
|
||||
elif type(ft) is ReceiveTransfer and ft.state != TOX_FILE_TRANSFER_STATE['INCOMING_NOT_STARTED']:
|
||||
elif type(ft) is ReceiveTransfer and ft.state != FILE_TRANSFER_STATE['INCOMING_NOT_STARTED']:
|
||||
self._paused_file_transfers[ft.get_id()] = [ft.get_path(), friend_num, True, ft.total_size()]
|
||||
self.cancel_transfer(friend_num, file_num, True)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue