Skip to content

Commit

Permalink
Rearrange view for starting bitcoind
Browse files Browse the repository at this point in the history
  • Loading branch information
jp1ac4 committed Aug 10, 2023
1 parent 87509e9 commit b152f9f
Showing 1 changed file with 14 additions and 14 deletions.
28 changes: 14 additions & 14 deletions gui/src/installer/view.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand All @@ -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,
)
}
Expand Down

0 comments on commit b152f9f

Please sign in to comment.