Pass in the fpath to PendingTransfer

This commit is contained in:
Luke Murphy 2020-07-27 13:42:33 +02:00
parent a61ed299c3
commit 0967171b02
No known key found for this signature in database
GPG Key ID: 5E2EF5A63E3718CC

View File

@ -29,8 +29,9 @@ AUTO_CLIP_COPY_SIZE = -1
class PendingTransfer:
"""A wormhole send waiting for a wormhole receive."""
def __init__(self, code):
def __init__(self, code, fpath):
"""Object initialisation."""
self.fpath = fpath
self.code = code
@ -176,7 +177,7 @@ class DropShip:
self.clipboard.set_text(code, AUTO_CLIP_COPY_SIZE)
self._pending.append(PendingTransfer(code))
self._pending.append(PendingTransfer(code, fpath))
await process.wait()