Merge #1430: gui(installer): better warn. if a signer is not compatible w/ tapminiscript
37dab1bff29333e6f73616238d5e608975002ce7 gui(installer): better warning if a signing device is not compatible w/ tapminiscript (pythcoiner) Pull request description: - replace this warning:  by this one:  - before if a non tap miniscript compatible device was selected, the selected icon was displayed, now the warning icon have priority:  ACKs for top commit: edouardparis: utACK 37dab1bff29333e6f73616238d5e608975002ce7 Tree-SHA512: 5b23cf097618ea19adde4477319c431308946a46d9c92d898da62c16b3a27977cb5ac7b27e802ac4ef85c94ebc610c4621a26ceace78f94fb0e26558b9f389ca
This commit is contained in:
commit
103651ec7f
@ -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
|
||||
},
|
||||
@ -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
|
||||
},
|
||||
|
||||
@ -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
|
||||
},
|
||||
@ -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
|
||||
},
|
||||
|
||||
@ -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
|
||||
},
|
||||
@ -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
|
||||
},
|
||||
@ -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
|
||||
},
|
||||
|
||||
@ -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())
|
||||
{
|
||||
@ -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())
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user