Skip to content

Commit

Permalink
Merge #1430: gui(installer): better warn. if a signer is not compatib…
Browse files Browse the repository at this point in the history
…le w/ tapminiscript

37dab1b gui(installer): better warning if a signing device is not compatible w/ tapminiscript (pythcoiner)

Pull request description:

  - replace this warning:
  ![image](https://github.com/user-attachments/assets/113f9608-a695-4389-8c53-f0da40fcb04f)
  by this one:
  ![image](https://github.com/user-attachments/assets/da666783-88ef-466c-a16a-5619c122d687)

  - before if a non tap miniscript compatible device was selected, the selected icon was displayed, now the warning icon have priority:
  ![image](https://github.com/user-attachments/assets/54b0e44e-c169-4aa0-b45d-7609b735cee2)

ACKs for top commit:
  edouardparis:
    utACK 37dab1b

Tree-SHA512: 5b23cf097618ea19adde4477319c431308946a46d9c92d898da62c16b3a27977cb5ac7b27e802ac4ef85c94ebc610c4621a26ceace78f94fb0e26558b9f389ca
  • Loading branch information
edouardparis committed Nov 4, 2024
2 parents c4370f8 + 37dab1b commit 103651e
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 9 deletions.
4 changes: 2 additions & 2 deletions gui/src/installer/view/editor/template/custom.rs
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ pub fn custom_template<'a>(
color::GREEN,
"Primary key",
if use_taproot && !key.is_compatible_taproot {
Some("Key is not compatible with taproot")
Some("This device does not support Taproot")
} else {
None
},
Expand Down Expand Up @@ -158,7 +158,7 @@ pub fn custom_template<'a>(
color::ORANGE,
"Recovery key",
if use_taproot && !key.is_compatible_taproot {
Some("Key is not compatible with Taproot")
Some("This device does not support Taproot")
} else {
None
},
Expand Down
4 changes: 2 additions & 2 deletions gui/src/installer/view/editor/template/inheritance.rs
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ pub fn inheritance_template<'a>(
color::GREEN,
"Primary key",
if use_taproot && !key.is_compatible_taproot {
Some("Key is not compatible with Taproot")
Some("This device does not support Taproot")
} else {
None
},
Expand All @@ -142,7 +142,7 @@ pub fn inheritance_template<'a>(
color::WHITE,
"Inheritance key",
if use_taproot && !key.is_compatible_taproot {
Some("Key is not compatible with taproot")
Some("This device does not support Taproot")
} else {
None
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ pub fn multisig_security_template<'a>(
color::GREEN,
format!("Primary key #{}", i + 1),
if use_taproot && !key.is_compatible_taproot {
Some("Key is not compatible with taproot")
Some("This device does not support Taproot")
} else {
None
},
Expand Down Expand Up @@ -178,7 +178,7 @@ pub fn multisig_security_template<'a>(
color::GREEN,
format!("Primary key #{}", j + 1),
if use_taproot && !key.is_compatible_taproot {
Some("Key is not compatible with Taproot")
Some("This device does not support Taproot")
} else {
None
},
Expand All @@ -189,7 +189,7 @@ pub fn multisig_security_template<'a>(
color::ORANGE,
"Recovery key".to_string(),
if use_taproot && !key.is_compatible_taproot {
Some("Key is not compatible with Taproot")
Some("This device does not support Taproot")
} else {
None
},
Expand Down
4 changes: 2 additions & 2 deletions gui/src/installer/view/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1560,8 +1560,6 @@ pub fn hw_list_view(
} => {
if chosen && processing {
hw::processing_hardware_wallet(kind, version.as_ref(), fingerprint, alias.as_ref())
} else if selected {
hw::selected_hardware_wallet(kind, version.as_ref(), fingerprint, alias.as_ref())
} else if device_must_support_taproot
&& !is_compatible_with_tapminiscript(kind, version.as_ref())
{
Expand All @@ -1572,6 +1570,8 @@ pub fn hw_list_view(
alias.as_ref(),
"Device firmware version does not support taproot miniscript",
)
} else if selected {
hw::selected_hardware_wallet(kind, version.as_ref(), fingerprint, alias.as_ref())
} else {
hw::supported_hardware_wallet(kind, version.as_ref(), fingerprint, alias.as_ref())
}
Expand Down

0 comments on commit 103651e

Please sign in to comment.