Browse Source
Pass in the fpath to PendingTransfer
unifiedWindowUI
No known key found for this signature in database
GPG Key ID: 5E2EF5A63E3718CC
1 changed files with
3 additions and
2 deletions
-
dropship.py
|
@ -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() |
|
|
|
|
|
|
|
|