Merge #717: installer: show message when starting already-installed bitcoind

7079c6f82b89bdd968b21a6b8bce37cff7e51d89 installer: show message when starting bitcoind (jp1ac4)

Pull request description:

  This is to resolve #714.

  The "Starting..." message will now be shown also in case bitcoind was already installed on a previous occasion:

  ![image](https://github.com/wizardsardine/liana/assets/121959000/dd385962-4fee-43e7-9177-96ff8b538e3f)

ACKs for top commit:
  edouardparis:
    ACK 7079c6f82b89bdd968b21a6b8bce37cff7e51d89

Tree-SHA512: 86d843208b0fa16eb9bc489b3e283ad1deb8e4aecf7743a7e124a23a4809c06d8b0dc8bc4fa68b6204f6ff0cede431b9799cda3d5d68e58720764b7fd089fb40
This commit is contained in:
edouard 2023-09-27 16:02:59 +02:00
commit ab5afcf75a
No known key found for this signature in database
GPG Key ID: E65F7A089C20DC8F

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(