parent
445a8c1334
commit
3a30a36ce5
@ -477,7 +477,11 @@ impl Action for SignAction {
|
||||
Message::Signed(fingerprint, res) => {
|
||||
self.signing.remove(&fingerprint);
|
||||
match res {
|
||||
Err(e) => self.error = Some(e),
|
||||
Err(e) => {
|
||||
if !matches!(e, Error::HardwareWallet(async_hwi::Error::UserRefused)) {
|
||||
self.error = Some(e)
|
||||
}
|
||||
}
|
||||
Ok(psbt) => {
|
||||
self.error = None;
|
||||
self.signed.insert(fingerprint);
|
||||
|
||||
@ -264,7 +264,11 @@ impl RegisterWalletModal {
|
||||
self.registered.insert(fingerprint);
|
||||
return Command::perform(async {}, |_| Message::LoadWallet);
|
||||
}
|
||||
Err(e) => self.warning = Some(e),
|
||||
Err(e) => {
|
||||
if !matches!(e, Error::HardwareWallet(async_hwi::Error::UserRefused)) {
|
||||
self.warning = Some(e)
|
||||
}
|
||||
}
|
||||
}
|
||||
Command::none()
|
||||
}
|
||||
|
||||
@ -1437,7 +1437,11 @@ impl Step for RegisterDescriptor {
|
||||
self.hmacs.push((fingerprint, *hw_h.kind(), hmac));
|
||||
}
|
||||
}
|
||||
Err(e) => self.error = Some(e),
|
||||
Err(e) => {
|
||||
if !matches!(e, Error::HardwareWallet(async_hwi::Error::UserRefused)) {
|
||||
self.error = Some(e)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Message::Reload => {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user