node: do not change chain type on restart

This commit is contained in:
ardocrat 2024-05-04 16:25:44 +03:00
parent e45724cbee
commit 493ccb5918

View file

@ -241,7 +241,7 @@ impl NodeSetup {
});
ui.add_space(8.0);
if saved_chain_type != selected_chain_type {
if saved_chain_type != selected_chain_type && !Node::is_restarting() {
AppConfig::change_chain_type(&selected_chain_type);
if Node::is_running() {
Node::restart();