Browse Source

Pass in the fpath to PendingTransfer

unifiedWindowUI
Luke Murphy 4 years ago
parent
commit
0967171b02
No known key found for this signature in database GPG Key ID: 5E2EF5A63E3718CC
  1. 5
      dropship.py

5
dropship.py

@ -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()

Loading…
Cancel
Save