gui: update SettingState.wallet on WalletUpdated() message

This commit is contained in:
pythcoiner 2024-07-18 09:37:08 +02:00
parent 0a7ff2b0ea
commit e34062a417

View File

@ -84,6 +84,13 @@ impl State for SettingsState {
.map(|s| s.reload(daemon, wallet))
.unwrap_or_else(Command::none)
}
Message::WalletUpdated(Ok(wallet)) => {
self.wallet = wallet.clone();
self.setting
.as_mut()
.map(|s| s.update(daemon, cache, message))
.unwrap_or_else(Command::none)
}
_ => self
.setting
.as_mut()