installer: show message when starting bitcoind

This message will now be shown also in case bitcoind was already
installed on a previous occasion.
This commit is contained in:
jp1ac4 2023-09-18 14:42:35 +01:00
parent 3a59790530
commit 7079c6f82b
No known key found for this signature in database
GPG Key ID: A7ACD32423568D7B

View File

@ -1064,15 +1064,17 @@ pub fn start_internal_bitcoind<'a>(
)
}
})
} else if let Some(InstallState::Finished) = install_state {
Some(Container::new(
Row::new()
.spacing(10)
.align_items(Alignment::Center)
.push(text("Starting...")),
))
} else {
Some(Container::new(Space::with_height(Length::Fixed(25.0))))
match (install_state, exe_path) {
// We have either just installed bitcoind or it was already installed.
(Some(InstallState::Finished), _) | (None, Some(_)) => Some(Container::new(
Row::new()
.spacing(10)
.align_items(Alignment::Center)
.push(text("Starting...")),
)),
_ => Some(Container::new(Space::with_height(Length::Fixed(25.0)))),
}
})
.spacing(50)
.push(