gui(installer): re-add next button

This Next button was accidentally removed in commit
bd03cc9cfffb7c5c45dd0dd60d54db807d4e02a2.

This re-adds the button with some code refactoring.
This commit is contained in:
Michael Mallan 2024-10-31 15:10:45 +00:00
parent cbc46e9e26
commit 322597f474
No known key found for this signature in database
GPG Key ID: 5177CDCEDB0EABEB

View File

@ -1360,7 +1360,17 @@ pub fn start_internal_bitcoind<'a>(
}
})
.spacing(50)
.push(Row::new())
.push(
Row::new().push(
button::secondary(None, "Next")
.width(Length::Fixed(200.0))
.on_press_maybe(if let Some(Ok(_)) = started {
Some(Message::Next)
} else {
None
}),
),
)
.push_maybe(error.map(|e| card::invalid(text(e)))),
true,
Some(message::Message::InternalBitcoind(