node: disable restart on change validation and archive mode

This commit is contained in:
ardocrat 2024-04-19 15:11:15 +03:00
parent 13c4c14647
commit 975c5d0576

View file

@ -522,9 +522,6 @@ impl NodeSetup {
let validate = NodeConfig::is_full_chain_validation();
View::checkbox(ui, validate, t!("network_settings.full_validation"), || {
NodeConfig::toggle_full_chain_validation();
if Node::is_running() {
Node::restart();
}
});
ui.add_space(4.0);
ui.label(RichText::new(t!("network_settings.full_validation_description"))
@ -538,9 +535,6 @@ impl NodeSetup {
let archive_mode = NodeConfig::is_archive_mode();
View::checkbox(ui, archive_mode, t!("network_settings.archive_mode"), || {
NodeConfig::toggle_archive_mode();
if Node::is_running() {
Node::restart();
}
});
ui.add_space(4.0);
ui.label(RichText::new(t!("network_settings.archive_mode_desc"))