Update selection title after editing definition
This commit is contained in:
parent
731bf3d43e
commit
543e98faaf
@ -157,6 +157,7 @@ Host {host}
|
|||||||
|
|
||||||
match action {
|
match action {
|
||||||
0 => { // Connect
|
0 => { // Connect
|
||||||
|
// TODO: clear screen before connect
|
||||||
std::process::Command::new("ssh")
|
std::process::Command::new("ssh")
|
||||||
.arg("-F")
|
.arg("-F")
|
||||||
.arg(host.config.to_owned())
|
.arg(host.config.to_owned())
|
||||||
@ -177,7 +178,8 @@ Host {host}
|
|||||||
2 => { // Edit definition
|
2 => { // Edit definition
|
||||||
let edited_host = host.edit()?;
|
let edited_host = host.edit()?;
|
||||||
config.configs.remove(host);
|
config.configs.remove(host);
|
||||||
config.configs.insert(edited_host);
|
config.configs.insert(edited_host.to_owned());
|
||||||
|
host.clone_from(&edited_host);
|
||||||
config.save();
|
config.save();
|
||||||
}
|
}
|
||||||
3 => { // Delete
|
3 => { // Delete
|
||||||
|
Loading…
x
Reference in New Issue
Block a user