From b4f505c4312c3ef4c54dde82a940e923c2b3ca1d Mon Sep 17 00:00:00 2001 From: Aaron Carlucci Date: Thu, 11 Jan 2024 20:11:29 +0100 Subject: [PATCH] Change text when downloading Bitcoin to include version number Minor formatting fix Text change to specify 'Bitcoin Core' during installation download --- gui/src/installer/view.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/gui/src/installer/view.rs b/gui/src/installer/view.rs index 6ed49ad7..ee29d616 100644 --- a/gui/src/installer/view.rs +++ b/gui/src/installer/view.rs @@ -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)