Desktop: Fix unset keybinds

This commit is contained in:
Willy-JL
2024-08-24 03:11:50 +02:00
parent 131416971d
commit 5c817a1cb4

View File

@@ -197,7 +197,8 @@ void desktop_run_keybind(Desktop* desktop, InputType _type, InputKey _key) {
DesktopKeybindKey key = keybind_keys[_key]; DesktopKeybindKey key = keybind_keys[_key];
FuriString* keybind = desktop_keybinds_load_one(desktop, type, key); FuriString* keybind = desktop_keybinds_load_one(desktop, type, key);
if(furi_string_equal(keybind, "Apps Menu")) { if(furi_string_empty(keybind)) {
} else if(furi_string_equal(keybind, "Apps Menu")) {
loader_start_detached_with_gui_error(desktop->loader, LOADER_APPLICATIONS_NAME, NULL); loader_start_detached_with_gui_error(desktop->loader, LOADER_APPLICATIONS_NAME, NULL);
} else if(furi_string_equal(keybind, "Archive")) { } else if(furi_string_equal(keybind, "Archive")) {
view_dispatcher_send_custom_event(desktop->view_dispatcher, DesktopMainEventOpenArchive); view_dispatcher_send_custom_event(desktop->view_dispatcher, DesktopMainEventOpenArchive);