Keep room UI state when disconnecting
This commit is contained in:
parent
38f8c0ed66
commit
f1b7ef0b98
1 changed files with 4 additions and 1 deletions
|
|
@ -197,7 +197,10 @@ impl Rooms {
|
||||||
}
|
}
|
||||||
KeyCode::Char('d') => {
|
KeyCode::Char('d') => {
|
||||||
if let Some(name) = self.list.cursor() {
|
if let Some(name) = self.list.cursor() {
|
||||||
self.euph_rooms.remove(&name);
|
let room = self.euph_rooms.entry(name.clone()).or_insert_with(|| {
|
||||||
|
EuphRoom::new(self.vault.euph(name.clone()), self.ui_event_tx.clone())
|
||||||
|
});
|
||||||
|
room.disconnect();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
KeyCode::Char('D') => {
|
KeyCode::Char('D') => {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue