We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7a51dbe commit 11a0b9bCopy full SHA for 11a0b9b
src/popups/create_remote.rs
@@ -170,6 +170,10 @@ impl CreateRemotePopup {
170
fn handle_submit(&mut self) {
171
match &self.state {
172
State::Name => {
173
+ self.state = State::Url {
174
+ name: self.input.get_text().to_string(),
175
+ };
176
+
177
self.input.clear();
178
self.input.set_title(
179
strings::create_remote_popup_title_url(
@@ -181,9 +185,6 @@ impl CreateRemotePopup {
181
185
&self.key_config,
182
186
),
183
187
);
184
- self.state = State::Url {
- name: self.input.get_text().to_string(),
- };
188
}
189
State::Url { name } => {
190
let res = sync::add_remote(
0 commit comments