Skip to content

Commit

Permalink
formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
acegoal07 committed Apr 4, 2024
1 parent 2f513b0 commit 7fd5152
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions nfc_playlist.c
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ static NfcPlaylist* nfc_playlist_alloc() {

static void nfc_playlist_free(NfcPlaylist* nfc_playlist) {
furi_assert(nfc_playlist);

view_dispatcher_remove_view(nfc_playlist->view_dispatcher, NfcPlaylistView_Menu);
view_dispatcher_remove_view(nfc_playlist->view_dispatcher, NfcPlaylistView_Settings);
view_dispatcher_remove_view(nfc_playlist->view_dispatcher, NfcPlaylistView_Popup);
Expand All @@ -114,7 +114,7 @@ static void nfc_playlist_free(NfcPlaylist* nfc_playlist) {
file_browser_free(nfc_playlist->file_browser);
text_input_free(nfc_playlist->text_input);
popup_free(nfc_playlist->popup);

furi_string_free(nfc_playlist->settings.base_file_path);
furi_string_free(nfc_playlist->settings.file_path);
free(nfc_playlist->playlist_name);
Expand Down
2 changes: 1 addition & 1 deletion scences/confirm_delete.c
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ bool nfc_playlist_confirm_delete_scene_on_event(void* context, SceneManagerEvent
nfc_playlist->settings.file_path = nfc_playlist->settings.base_file_path;
break;
}
default:
default:
break;
}
scene_manager_previous_scene(nfc_playlist->scene_manager);
Expand Down
4 changes: 2 additions & 2 deletions scences/file_edit.c
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,14 @@ void nfc_playlist_file_edit_menu_callback(void* context, uint32_t index) {
scene_manager_next_scene(nfc_playlist->scene_manager, NfcPlaylistScene_FileRename);
break;
}
default:
default:
break;
}
}

void nfc_playlist_file_edit_scene_on_enter(void* context) {
NfcPlaylist* nfc_playlist = context;

submenu_set_header(nfc_playlist->submenu, "Edit Playlist");

submenu_add_lockable_item(
Expand Down
2 changes: 1 addition & 1 deletion scences/settings.c
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ void nfc_playlist_settings_scene_on_enter(void* context) {
variable_item_list_add(nfc_playlist->variable_item_list, "Reset settings", 0, NULL, NULL);

variable_item_list_set_enter_callback(nfc_playlist->variable_item_list, nfc_playlist_settings_menu_callback, nfc_playlist);

furi_string_free(temp_str);

view_dispatcher_switch_to_view(nfc_playlist->view_dispatcher, NfcPlaylistView_Settings);
Expand Down

0 comments on commit 7fd5152

Please sign in to comment.