Merge #1200: gui: update SettingState.wallet on WalletUpdated() message

e34062a417a3533a2c42f776a495c2810775983b gui: update `SettingState.wallet` on `WalletUpdated()` message (pythcoiner)

Pull request description:

  This PR fixes #1170.

  result Message from `update_key_aliases()` emited [here](0a7ff2b0ea/gui/src/app/state/settings/wallet.rs (L152)) was not catch in `SettingState.update()`.

ACKs for top commit:
  edouardparis:
    ACK e34062a417a3533a2c42f776a495c2810775983b

Tree-SHA512: 81a90c96f7667eb9a0b55a7a1f918e1621e72bbd71ff30d1551e04746f9fa257d9d37a405bf0ca58b7f2b7039d2dcc16b3869da3c3643f61652d0a310c23a11b
This commit is contained in:
edouardparis 2024-07-18 16:11:47 +02:00
commit bf9bf9a26f
No known key found for this signature in database
GPG Key ID: E65F7A089C20DC8F

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()