label only selectable after we have the transfer code

This commit is contained in:
rra 2020-07-23 14:42:40 +02:00
parent b569a3e56e
commit 0c40acabe9
2 changed files with 1 additions and 1 deletions

View File

@ -30,7 +30,6 @@
<property name="visible">True</property> <property name="visible">True</property>
<property name="can_focus">False</property> <property name="can_focus">False</property>
<property name="label" translatable="yes">Drag a file to send</property> <property name="label" translatable="yes">Drag a file to send</property>
<property name="selectable">True</property>
</object> </object>
<packing> <packing>
<property name="expand">False</property> <property name="expand">False</property>

View File

@ -144,6 +144,7 @@ class DropShip:
line = await self.read_lines(process.stderr, "wormhole receive") line = await self.read_lines(process.stderr, "wormhole receive")
code = line.split()[-1] code = line.split()[-1]
self.drop_label.set_selectable(True)
self.drop_label.set_text(code) self.drop_label.set_text(code)
self._pending.append(PendingTransfer(code)) self._pending.append(PendingTransfer(code))