From fc98cb0fb725306169c51d336674e36a2eaba5e8 Mon Sep 17 00:00:00 2001 From: ardocrat Date: Tue, 28 May 2024 13:58:56 +0300 Subject: [PATCH] wallet: fix integrated node connection change --- src/gui/views/wallets/setup/connection.rs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/gui/views/wallets/setup/connection.rs b/src/gui/views/wallets/setup/connection.rs index f39489c..b0e42ce 100644 --- a/src/gui/views/wallets/setup/connection.rs +++ b/src/gui/views/wallets/setup/connection.rs @@ -106,17 +106,16 @@ impl ConnectionSetup { self.ui(ui, frame, Some(wallet), cb); // Setup wallet connection value after change. - let config = wallet.get_config(); let changed = match self.method { ConnectionMethod::Integrated => { - let changed = config.ext_conn_id.is_some(); + let changed = wallet.get_current_ext_conn().is_some(); if changed { wallet.update_ext_conn_id(None); } changed } ConnectionMethod::External(id) => { - let changed = config.ext_conn_id != Some(id); + let changed = wallet.get_config().ext_conn_id != Some(id); if changed { wallet.update_ext_conn_id(Some(id)); }