1
0
Fork 0

fix (UI): fixed a bug that caused a panic when cancelling a login process.

This commit is contained in:
antifallobst 2023-06-29 13:30:45 +02:00
parent aee5b77722
commit 82bd751ac8
1 changed files with 1 additions and 2 deletions

View File

@ -259,7 +259,7 @@ impl UI {
})?; })?;
match Input::from(read()?.clone()) { match Input::from(read()?.clone()) {
Input { key: Key::Esc, .. } => break, Input { key: Key::Esc, .. } => return Err(Error::msg("Login cancelled by user")),
Input { Input {
key: Key::Enter, key: Key::Enter,
.. ..
@ -311,7 +311,6 @@ impl UI {
} }
}; };
} }
Ok(())
} }
pub fn close(&mut self) -> Result<()>{ pub fn close(&mut self) -> Result<()>{