node: refactor sync status and thread starting

This commit is contained in:
ardocrat
2023-05-11 20:21:48 +03:00
parent 06f32dcb77
commit 5f3a4b4716
4 changed files with 91 additions and 67 deletions
+2 -2
View File
@@ -62,7 +62,7 @@ impl NetworkTab for NetworkNode {
}
if ui.button("re-start").clicked() {
node.restart(ChainTypes::Mainnet);
node.restart();
}
if ui.button("start").clicked() {
@@ -70,7 +70,7 @@ impl NetworkTab for NetworkNode {
}
}
fn title(&self) -> &String {
fn name(&self) -> &String {
&self.title
}
}