Merge #419: gui: fix a misleading tooltip on hw connection error

3314b7e597a11b5c6fa653ec9c18058aff64adde gui: fix a misleading tooltip on hw connection error (Antoine Poinsot)

Pull request description:

  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.

ACKs for top commit:
  edouardparis:
    ACK 3314b7e597a11b5c6fa653ec9c18058aff64adde

Tree-SHA512: fc1627d10e071b0be7d8879455d40dd1969a1d8f4ca850dc5348b921817f103c2fa0c059cfeeddea4a636e7c0de61dd1b2509bdc3470a6a0f3fb200d7fc66e80
This commit is contained in:
Antoine Poinsot 2023-04-07 13:45:34 +02:00
commit e11b68f427
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![ column(vec![
Row::new() Row::new()
.spacing(5) .spacing(5)
.push(text("Unsupported version").bold()) .push(text("Connection error").bold())
.into(), .into(),
Row::new() Row::new()
.spacing(5) .spacing(5)
@ -225,7 +225,7 @@ pub fn unsupported_hardware_wallet<'a, T: 'a, K: Display, V: Display>(
.into(), .into(),
tooltip::Tooltip::new( tooltip::Tooltip::new(
icon::warning_icon(), 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, tooltip::Position::Bottom,
) )
.style(theme::Container::Card(theme::Card::Simple)) .style(theme::Container::Card(theme::Card::Simple))