Cleanup and format

This commit is contained in:
Willy-JL
2023-07-21 00:14:42 +01:00
parent d649ef113e
commit df08c0f14d
3 changed files with 0 additions and 4 deletions
-1
View File
@@ -238,7 +238,6 @@ static Loader* loader_alloc() {
FuriString* line = furi_string_alloc();
FuriString* name = furi_string_alloc();
do {
if(!file_stream_open(stream, XTREME_MENU_PATH, FSAM_READ_WRITE, FSOM_OPEN_EXISTING)) {
file_stream_close(stream);
loader_make_menu_file(storage);
@@ -67,7 +67,6 @@ void desktop_settings_scene_keybinds_action_on_enter(void* context) {
}
}
// submenu_set_header(submenu, "Keybind action:");
submenu_set_selected_item(submenu, pre_select_item); // If set during loop, visual glitch.
view_dispatcher_switch_to_view(app->view_dispatcher, DesktopSettingsAppViewMenu);
@@ -45,7 +45,6 @@ static void
}
furi_record_close(RECORD_STORAGE);
if(dialog_file_browser_show(app->dialogs, temp_path, temp_path, &browser_options)) {
submenu_reset(app->submenu); // Prevent menu from being shown when we exiting scene
strncpy(keybind, furi_string_get_cstr(temp_path), MAX_KEYBIND_LENGTH);
DESKTOP_KEYBINDS_SAVE(&app->desktop->keybinds, sizeof(app->desktop->keybinds));
scene_manager_search_and_switch_to_previous_scene(
@@ -69,7 +68,6 @@ void desktop_settings_scene_keybinds_action_type_on_enter(void* context) {
DesktopSettingsApp* app = context;
Submenu* submenu = app->submenu;
char* keybind = desktop_settings_app_get_keybind(app);
submenu_reset(submenu);
submenu_add_item(
submenu,