From 11a0b9b0b7d690c5c64ceb71ca008032c76d7e01 Mon Sep 17 00:00:00 2001 From: extrawurst Date: Wed, 18 Sep 2024 23:47:12 +0200 Subject: [PATCH] fix create-remote --- src/popups/create_remote.rs | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/popups/create_remote.rs b/src/popups/create_remote.rs index 6db643c7..ac64934d 100644 --- a/src/popups/create_remote.rs +++ b/src/popups/create_remote.rs @@ -170,6 +170,10 @@ impl CreateRemotePopup { fn handle_submit(&mut self) { match &self.state { State::Name => { + self.state = State::Url { + name: self.input.get_text().to_string(), + }; + self.input.clear(); self.input.set_title( strings::create_remote_popup_title_url( @@ -181,9 +185,6 @@ impl CreateRemotePopup { &self.key_config, ), ); - self.state = State::Url { - name: self.input.get_text().to_string(), - }; } State::Url { name } => { let res = sync::add_remote(