Fixed error overlay for auth activity

This commit is contained in:
veeso
2021-05-21 12:31:30 +02:00
parent 60ee2f1c2b
commit 09665fead3
2 changed files with 11 additions and 10 deletions

View File

@@ -223,6 +223,13 @@ impl AuthActivity {
self.umount_bookmark_del_dialog();
None
}
// Error message
(COMPONENT_TEXT_ERROR, &MSG_KEY_ENTER) | (COMPONENT_TEXT_ERROR, &MSG_KEY_ESC) => {
// Umount text error
self.umount_error();
None
}
(COMPONENT_TEXT_ERROR, _) => None,
// Help
(_, &MSG_KEY_CTRL_H) => {
// Show help
@@ -286,12 +293,6 @@ impl AuthActivity {
self.umount_bookmark_save_dialog();
None
}
// Error message
(COMPONENT_TEXT_ERROR, &MSG_KEY_ENTER) => {
// Umount text error
self.umount_error();
None
}
// Quit dialog
(COMPONENT_RADIO_QUIT, Msg::OnSubmit(Payload::One(Value::Usize(choice)))) => {
// If choice is 0, quit termscp