GUI: add back to dialog module results. Power: exit from reboot view. (#477)
Co-authored-by: SG <who.just.the.doctor@gmail.com>
This commit is contained in:
@@ -50,6 +50,9 @@ static bool dialog_view_input_callback(InputEvent* event, void* context) {
|
||||
} else if(event->key == InputKeyRight) {
|
||||
dialog->callback(DialogResultRight, dialog->context);
|
||||
consumed = true;
|
||||
} else if(event->key == InputKeyBack) {
|
||||
dialog->callback(DialogResultBack, dialog->context);
|
||||
consumed = true;
|
||||
}
|
||||
}
|
||||
|
||||
|
@@ -12,6 +12,7 @@ typedef struct Dialog Dialog;
|
||||
typedef enum {
|
||||
DialogResultLeft,
|
||||
DialogResultRight,
|
||||
DialogResultBack,
|
||||
} DialogResult;
|
||||
|
||||
/* Dialog result callback type
|
||||
|
Reference in New Issue
Block a user