fix create-remote

This commit is contained in:
extrawurst 2024-09-18 23:47:12 +02:00
parent 7a51dbec4d
commit 11a0b9b0b7

View File

@ -170,6 +170,10 @@ impl CreateRemotePopup {
fn handle_submit(&mut self) { fn handle_submit(&mut self) {
match &self.state { match &self.state {
State::Name => { State::Name => {
self.state = State::Url {
name: self.input.get_text().to_string(),
};
self.input.clear(); self.input.clear();
self.input.set_title( self.input.set_title(
strings::create_remote_popup_title_url( strings::create_remote_popup_title_url(
@ -181,9 +185,6 @@ impl CreateRemotePopup {
&self.key_config, &self.key_config,
), ),
); );
self.state = State::Url {
name: self.input.get_text().to_string(),
};
} }
State::Url { name } => { State::Url { name } => {
let res = sync::add_remote( let res = sync::add_remote(