Merge #912: #858: Change text when downloading Bitcoin to include version number

b4f505c4312c3ef4c54dde82a940e923c2b3ca1d Change text when downloading Bitcoin to include version number (Aaron Carlucci)

Pull request description:

  Simple text change to add bitcoind version number to download wording as per #858. First issue exploration.

ACKs for top commit:
  pythcoiner:
    ACK b4f505c4312c3ef4c54dde82a940e923c2b3ca1d
  jp1ac4:
    ACK b4f505c431.

Tree-SHA512: 768941de9f308681b903235bc3f9dc6273bd1eac3cdc0b800e7ad1182c3468f37eb9e1169e4ccc79a4e465668d215b419d2e433754914a3a12447575dd693558
This commit is contained in:
Antoine Poinsot 2024-01-13 11:50:17 +01:00
commit 47f60bf2d5
No known key found for this signature in database
GPG Key ID: E13FC145CD3F4304

View File

@ -1025,6 +1025,7 @@ pub fn start_internal_bitcoind<'a>(
download_state: Option<&DownloadState>,
install_state: Option<&InstallState>,
) -> Element<'a, Message> {
let version = crate::bitcoind::VERSION;
let mut next_button = button::primary(None, "Next").width(Length::Fixed(200.0));
if let Some(Ok(_)) = started {
next_button = next_button.on_press(Message::Next);
@ -1043,7 +1044,9 @@ pub fn start_internal_bitcoind<'a>(
DownloadState::Downloading { progress } => Row::new()
.spacing(10)
.align_items(Alignment::Center)
.push(text(format!("Downloading... {progress:.2}%"))),
.push(text(format!(
"Downloading Bitcoin Core {version}... {progress:.2}%"
))),
DownloadState::Errored(e) => Row::new()
.spacing(10)
.align_items(Alignment::Center)