Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions bitcoin_usb/tool_gui.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import platform
from functools import partial

import bdkpython as bdk
from bitcoin_safe_lib.async_tools.loop_in_thread import LoopInThread
Expand Down Expand Up @@ -153,15 +152,16 @@ def __init__(self, network: bdk.Network, loop_in_thread: LoopInThread):

# Initialize the network selection

self.combo_network.currentIndexChanged.connect(
partial(self.usb.set_network, bdk.Network[self.combo_network.currentText()])
)
self.combo_network.currentIndexChanged.connect(self.set_network)

self.shortcut_close = QShortcut(QKeySequence("Ctrl+W"), self)
self.shortcut_close.activated.connect(self.close)
self.shortcut_close2 = QShortcut(QKeySequence("ESC"), self)
self.shortcut_close2.activated.connect(self.close)

def set_network(self):
self.usb.set_network(self.combo_network.currentData())

def install_udev(self):
self.usb.linux_cmd_install_udev_as_sudo()

Expand Down
3 changes: 3 additions & 0 deletions bitcoin_usb/usb_gui.py
Original file line number Diff line number Diff line change
Expand Up @@ -370,6 +370,9 @@ def handle_exception_write_down_seed(self, exception: Exception) -> bool:
return True

def show_error_message(self, text: str) -> None:
if "temporary wallet associated with different connection" in text:
text += "\n" + self.tr("Please try disconnecting and reconnecting the device")

if platform.system() == "Linux":
self.show_error_message_linux(text)
else:
Expand Down
Loading