From 322597f474a7b726540f28e383fb19c76e161d2b Mon Sep 17 00:00:00 2001 From: Michael Mallan Date: Thu, 31 Oct 2024 15:10:45 +0000 Subject: [PATCH] gui(installer): re-add next button This Next button was accidentally removed in commit bd03cc9cfffb7c5c45dd0dd60d54db807d4e02a2. This re-adds the button with some code refactoring. --- gui/src/installer/view/mod.rs | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/gui/src/installer/view/mod.rs b/gui/src/installer/view/mod.rs index 9f5818ab..46949b21 100644 --- a/gui/src/installer/view/mod.rs +++ b/gui/src/installer/view/mod.rs @@ -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(