Fix keybinds for main applications / exta actions

This commit is contained in:
Willy-JL
2023-08-10 03:31:49 +02:00
parent 367389367a
commit 9e8139bb13

View File

@@ -493,7 +493,12 @@ void desktop_run_keybind(Desktop* instance, InputType _type, InputKey _key) {
} else if(!strncmp(keybind, "Wipe Device", MAX_KEYBIND_LENGTH)) {
loader_start_detached_with_gui_error(instance->loader, "Storage", "wipe");
} else {
run_with_default_app(keybind);
if(storage_common_exists(furi_record_open(RECORD_STORAGE), keybind)) {
run_with_default_app(keybind);
} else {
loader_start_detached_with_gui_error(instance->loader, keybind, NULL);
}
furi_record_close(RECORD_STORAGE);
}
}