Browse Source

Use self.transfer_code

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

6
dropship/dropship.py

@ -131,9 +131,9 @@ class DropShip:
self.drop_spinner.set_visible(True) self.drop_spinner.set_visible(True)
self.drop_spinner.start() self.drop_spinner.start()
def _send_spinner_off(self, code): def _send_spinner_off(self):
"""Turn spinner off for sending interaction.""" """Turn spinner off for sending interaction."""
self.drop_label.set_text(code) self.drop_label.set_text(self.transfer_code)
self.drop_label.set_visible(True) self.drop_label.set_visible(True)
self.drop_label.set_selectable(True) self.drop_label.set_selectable(True)
self.drop_spinner.stop() self.drop_spinner.stop()
@ -148,7 +148,7 @@ class DropShip:
output = await process.stderr.receive_some() output = await process.stderr.receive_some()
self.transfer_code = output.decode().split()[-1] self.transfer_code = output.decode().split()[-1]
self.clipboard.set_text(self.transfer_code, -1) self.clipboard.set_text(self.transfer_code, -1)
self._send_spinner_off(self.transfer_code) self._send_spinner_off()
await process.wait() await process.wait()
async def wormhole_recv(self, code): async def wormhole_recv(self, code):

Loading…
Cancel
Save