mirror of
https://github.com/DarkFlippers/unleashed-firmware
synced 2024-11-10 15:04:19 +00:00
Fix loader hangup on exit if api mismatch happened
This commit is contained in:
parent
55149f6d4c
commit
f81f4edad3
2 changed files with 5 additions and 1 deletions
|
@ -273,7 +273,7 @@ static LoaderStatus loader_start_external_app(
|
|||
DialogMessage* message = dialog_message_alloc();
|
||||
dialog_message_set_header(
|
||||
message, "API Mismatch", 64, 0, AlignCenter, AlignTop);
|
||||
dialog_message_set_buttons(message, "Cancel", NULL, "Continue");
|
||||
dialog_message_set_buttons(message, NULL, NULL, "Continue");
|
||||
dialog_message_set_text(
|
||||
message,
|
||||
"This app might not\nwork correctly\nContinue anyways?",
|
||||
|
@ -284,6 +284,9 @@ static LoaderStatus loader_start_external_app(
|
|||
if(dialog_message_show(dialogs, message) == DialogMessageButtonRight) {
|
||||
status = loader_make_status_error(
|
||||
LoaderStatusErrorApiMismatch, error_message, "API Mismatch");
|
||||
} else {
|
||||
status = loader_make_status_error(
|
||||
LoaderStatusErrorApiMismatchExit, error_message, "API Mismatch");
|
||||
}
|
||||
dialog_message_free(message);
|
||||
furi_record_close(RECORD_DIALOGS);
|
||||
|
|
|
@ -16,6 +16,7 @@ typedef enum {
|
|||
LoaderStatusErrorUnknownApp,
|
||||
LoaderStatusErrorInternal,
|
||||
LoaderStatusErrorApiMismatch,
|
||||
LoaderStatusErrorApiMismatchExit,
|
||||
} LoaderStatus;
|
||||
|
||||
typedef enum {
|
||||
|
|
Loading…
Reference in a new issue