mirror of
https://github.com/extrawurst/gitui.git
synced 2024-11-22 11:03:25 +03:00
fix create-remote
This commit is contained in:
parent
7a51dbec4d
commit
11a0b9b0b7
@ -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(
|
||||
|
Loading…
Reference in New Issue
Block a user