[FL-2548] Infrared: show error if no SD card/databases (#1337)

* Add Database error scene
* More general popup callback name
This commit is contained in:
Georgii Surkov
2022-06-21 17:45:55 +03:00
committed by GitHub
parent eb31fed0e2
commit 92f763e553
11 changed files with 66 additions and 12 deletions
+5 -3
View File
@@ -8,7 +8,9 @@ static const NotificationSequence* infrared_notification_sequences[] = {
&sequence_set_only_green_255,
&sequence_reset_green,
&sequence_blink_cyan_10,
&sequence_blink_magenta_10};
&sequence_blink_magenta_10,
&sequence_solid_yellow,
&sequence_reset_rgb};
static void infrared_make_app_folder(Infrared* infrared) {
if(!storage_simply_mkdir(infrared->storage, INFRARED_APP_FOLDER)) {
@@ -360,11 +362,11 @@ void infrared_text_input_callback(void* context) {
infrared->view_dispatcher, InfraredCustomEventTypeTextEditDone);
}
void infrared_popup_timeout_callback(void* context) {
void infrared_popup_closed_callback(void* context) {
furi_assert(context);
Infrared* infrared = context;
view_dispatcher_send_custom_event(
infrared->view_dispatcher, InfraredCustomEventTypePopupTimeout);
infrared->view_dispatcher, InfraredCustomEventTypePopupClosed);
}
int32_t infrared_app(void* p) {