From b152f9f7f147e13bfe43e3aeb4f714752d23d417 Mon Sep 17 00:00:00 2001 From: jp1ac4 <121959000+jp1ac4@users.noreply.github.com> Date: Thu, 10 Aug 2023 11:05:06 +0100 Subject: [PATCH] Rearrange view for starting bitcoind --- gui/src/installer/view.rs | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/gui/src/installer/view.rs b/gui/src/installer/view.rs index 95f54b634..d99766dae 100644 --- a/gui/src/installer/view.rs +++ b/gui/src/installer/view.rs @@ -968,19 +968,6 @@ pub fn start_internal_bitcoind<'a>( .push(text("Cannot find bitcoind").style(color::RED)), ) }) - .push( - Row::new() - .spacing(10) - .push(Container::new(if exe_path.is_some() && started.is_none() { - start_button.on_press(Message::StartInternalBitcoind( - message::StartInternalBitcoindMsg::Start, - )) - } else { - start_button - })) - .push(Row::new().spacing(10).push(next_button)), - ) - .spacing(50) .push_maybe(if started.is_some() { started.map(|res| { if res.is_ok() { @@ -1005,7 +992,20 @@ pub fn start_internal_bitcoind<'a>( }) } else { Some(Container::new(Space::with_height(Length::Fixed(25.0)))) - }), + }) + .spacing(50) + .push( + Row::new() + .spacing(10) + .push(Container::new(if exe_path.is_some() && started.is_none() { + start_button.on_press(Message::StartInternalBitcoind( + message::StartInternalBitcoindMsg::Start, + )) + } else { + start_button + })) + .push(Row::new().spacing(10).push(next_button)), + ), true, ) }