gui: fix a misleading tooltip on hw connection error

The error may not be due to an unsupported version. For instance the
device may just be locked. In these cases telling the user to update
their device is very misleading.

Fixes #418.
This commit is contained in:
Antoine Poinsot 2023-04-07 13:09:08 +02:00
parent fb6433439c
commit 3314b7e597
No known key found for this signature in database
GPG Key ID: E13FC145CD3F4304

View File

@ -213,7 +213,7 @@ pub fn unsupported_hardware_wallet<'a, T: 'a, K: Display, V: Display>(
column(vec![
Row::new()
.spacing(5)
.push(text("Unsupported version").bold())
.push(text("Connection error").bold())
.into(),
Row::new()
.spacing(5)
@ -225,7 +225,7 @@ pub fn unsupported_hardware_wallet<'a, T: 'a, K: Display, V: Display>(
.into(),
tooltip::Tooltip::new(
icon::warning_icon(),
"Please update the application on your device",
"Make sure your device is unlocked and a supported Bitcoin application is opened.",
tooltip::Position::Bottom,
)
.style(theme::Container::Card(theme::Card::Simple))