mirror of
https://github.com/Next-Flip/Momentum-Firmware.git
synced 2026-05-13 17:28:36 -07:00
Keybind fix hang on loader app error
This commit is contained in:
@@ -71,9 +71,9 @@ static void archive_show_file(Loader* loader, const char* path) {
|
|||||||
furi_record_close(RECORD_STORAGE);
|
furi_record_close(RECORD_STORAGE);
|
||||||
|
|
||||||
if(text) {
|
if(text) {
|
||||||
loader_start_with_gui_error(loader, EXT_PATH("apps/Tools/text_viewer.fap"), path);
|
loader_start_detached_with_gui_error(loader, EXT_PATH("apps/Tools/text_viewer.fap"), path);
|
||||||
} else {
|
} else {
|
||||||
loader_start_with_gui_error(loader, EXT_PATH("apps/Tools/hex_viewer.fap"), path);
|
loader_start_detached_with_gui_error(loader, EXT_PATH("apps/Tools/hex_viewer.fap"), path);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -105,11 +105,11 @@ static void
|
|||||||
snprintf(arg, sizeof(arg), "fav%s", str);
|
snprintf(arg, sizeof(arg), "fav%s", str);
|
||||||
loader_start_with_gui_error(loader, app_name, arg);
|
loader_start_with_gui_error(loader, app_name, arg);
|
||||||
} else {
|
} else {
|
||||||
loader_start_with_gui_error(loader, app_name, str);
|
loader_start_detached_with_gui_error(loader, app_name, str);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} else if(selected->type == ArchiveFileTypeApplication) {
|
} else if(selected->type == ArchiveFileTypeApplication) {
|
||||||
loader_start_with_gui_error(loader, furi_string_get_cstr(selected->path), NULL);
|
loader_start_detached_with_gui_error(loader, furi_string_get_cstr(selected->path), NULL);
|
||||||
} else {
|
} else {
|
||||||
archive_show_file(loader, furi_string_get_cstr(selected->path));
|
archive_show_file(loader, furi_string_get_cstr(selected->path));
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user