Pass in the fpath to PendingTransfer
This commit is contained in:
parent
a61ed299c3
commit
0967171b02
@ -29,8 +29,9 @@ AUTO_CLIP_COPY_SIZE = -1
|
|||||||
class PendingTransfer:
|
class PendingTransfer:
|
||||||
"""A wormhole send waiting for a wormhole receive."""
|
"""A wormhole send waiting for a wormhole receive."""
|
||||||
|
|
||||||
def __init__(self, code):
|
def __init__(self, code, fpath):
|
||||||
"""Object initialisation."""
|
"""Object initialisation."""
|
||||||
|
self.fpath = fpath
|
||||||
self.code = code
|
self.code = code
|
||||||
|
|
||||||
|
|
||||||
@ -176,7 +177,7 @@ class DropShip:
|
|||||||
|
|
||||||
self.clipboard.set_text(code, AUTO_CLIP_COPY_SIZE)
|
self.clipboard.set_text(code, AUTO_CLIP_COPY_SIZE)
|
||||||
|
|
||||||
self._pending.append(PendingTransfer(code))
|
self._pending.append(PendingTransfer(code, fpath))
|
||||||
|
|
||||||
await process.wait()
|
await process.wait()
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user