Merge #1320: gui(settings): fix daemon reload handling for electrum

ff3d497fe12a70c606e9953cfb29fa4af0520859 gui(settings): fix daemon reload handling for electrum (Michael Mallan)

Pull request description:

  In case of error reloading daemon for Electrum, set edited to false (same handling as for bitcoind).

ACKs for top commit:
  darosior:
    tested ACK ff3d497fe12a70c606e9953cfb29fa4af0520859. Not bulletproof as i need to get back to the settings and re-click save with the previous settings for the daemon to be restarted, but still helps a lot to have the previous-working-config ready to be saved.

Tree-SHA512: c9c6aad38a8a834d51a6642b42c560107e503afa820db971a2af23c979681ee8487ff4c1c635d99ac740351fab0fe9c3b0119d0d3326193b5aea81f7dfe6598b
This commit is contained in:
Antoine Poinsot 2024-09-11 12:29:52 +02:00
commit f6baec322a
No known key found for this signature in database
GPG Key ID: E13FC145CD3F4304

View File

@ -129,6 +129,9 @@ impl State for BitcoindSettingsState {
if let Some(settings) = &mut self.node_settings {
settings.edited(false);
}
if let Some(settings) = &mut self.electrum_settings {
settings.edited(false);
}
}
},
Message::Info(res) => match res {