diff --git a/gui/src/app/state/psbt.rs b/gui/src/app/state/psbt.rs index 3d18db5a..66c5a3e4 100644 --- a/gui/src/app/state/psbt.rs +++ b/gui/src/app/state/psbt.rs @@ -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); diff --git a/gui/src/app/state/settings/wallet.rs b/gui/src/app/state/settings/wallet.rs index 8686a980..85128297 100644 --- a/gui/src/app/state/settings/wallet.rs +++ b/gui/src/app/state/settings/wallet.rs @@ -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() } diff --git a/gui/src/installer/step/descriptor.rs b/gui/src/installer/step/descriptor.rs index 7e020868..2426496e 100644 --- a/gui/src/installer/step/descriptor.rs +++ b/gui/src/installer/step/descriptor.rs @@ -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 => {