Skip to content

Commit

Permalink
Change text when downloading Bitcoin to include version number
Browse files Browse the repository at this point in the history
Minor formatting fix

Text change to specify 'Bitcoin Core' during installation download
  • Loading branch information
Aaron Carlucci committed Jan 12, 2024
1 parent d8a5e1d commit b4f505c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion gui/src/installer/view.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand All @@ -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)
Expand Down

0 comments on commit b4f505c

Please sign in to comment.