mirror of
https://github.com/extrawurst/gitui.git
synced 2024-11-25 18:44:53 +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) {
|
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(
|
||||||
|
Loading…
Reference in New Issue
Block a user