From 493ccb5918c6a8dc8be52a5795b5772a111f33c9 Mon Sep 17 00:00:00 2001 From: ardocrat Date: Sat, 4 May 2024 16:25:44 +0300 Subject: [PATCH] node: do not change chain type on restart --- src/gui/views/network/setup/node.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gui/views/network/setup/node.rs b/src/gui/views/network/setup/node.rs index be92ce3..a203907 100644 --- a/src/gui/views/network/setup/node.rs +++ b/src/gui/views/network/setup/node.rs @@ -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();