Skip to content

Commit 11a0b9b

Browse files
committed
fix create-remote
1 parent 7a51dbe commit 11a0b9b

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/popups/create_remote.rs

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -170,6 +170,10 @@ impl CreateRemotePopup {
170170
fn handle_submit(&mut self) {
171171
match &self.state {
172172
State::Name => {
173+
self.state = State::Url {
174+
name: self.input.get_text().to_string(),
175+
};
176+
173177
self.input.clear();
174178
self.input.set_title(
175179
strings::create_remote_popup_title_url(
@@ -181,9 +185,6 @@ impl CreateRemotePopup {
181185
&self.key_config,
182186
),
183187
);
184-
self.state = State::Url {
185-
name: self.input.get_text().to_string(),
186-
};
187188
}
188189
State::Url { name } => {
189190
let res = sync::add_remote(

0 commit comments

Comments
 (0)