Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
acegoal07 committed Mar 1, 2024
1 parent bf9314c commit 957b673
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 7 deletions.
1 change: 0 additions & 1 deletion lib/worker/nfc_playlist_worker.c
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ void nfc_playlist_worker_free(NfcPlaylistWorker* nfc_playlist_worker) {
furi_thread_free(nfc_playlist_worker->thread);
nfc_free(nfc_playlist_worker->nfc);
nfc_device_free(nfc_playlist_worker->nfc_device);
nfc_listener_free(nfc_playlist_worker->nfc_listener);
free(nfc_playlist_worker);
}

Expand Down
2 changes: 1 addition & 1 deletion scences/file_edit.c
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ void nfc_playlist_file_edit_scene_on_enter(void* context) {
NfcPlaylistMenuSelection_RenamePlaylist,
nfc_playlist_file_edit_menu_callback,
nfc_playlist,
!nfc_playlist->settings.file_selected_check,
true,
"No\nplaylist\nselected");

view_dispatcher_switch_to_view(nfc_playlist->view_dispatcher, NfcPlaylistView_FileEdit);
Expand Down
4 changes: 2 additions & 2 deletions scences/file_exists_error.c
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ void nfc_playlist_file_exists_error_scene_on_enter(void* context) {
popup_set_text(nfc_playlist->popup, "The file already exists, Press back to try again", 64, 50, AlignCenter, AlignTop);
popup_set_context(nfc_playlist->popup, nfc_playlist);
view_dispatcher_switch_to_view(nfc_playlist->view_dispatcher, NfcPlaylistView_FileExistsError);
start_blinking(nfc_playlist->notification, NfcPlaylistLedState_Error);
start_blink(nfc_playlist, NfcPlaylistLedState_Error);
}

bool nfc_playlist_file_exists_error_scene_on_event(void* context, SceneManagerEvent event) {
Expand All @@ -19,7 +19,7 @@ bool nfc_playlist_file_exists_error_scene_on_event(void* context, SceneManagerEv

void nfc_playlist_file_exists_error_scene_on_exit(void* context) {
NfcPlaylist* nfc_playlist = context;
stop_blinking(nfc_playlist->notification);
stop_blink(nfc_playlist);
popup_reset(nfc_playlist->popup);
scene_manager_previous_scene(nfc_playlist->scene_manager);
}
6 changes: 3 additions & 3 deletions scences/file_exists_error.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@
#include <gui/scene_manager.h>
#include <lib/led/nfc_playlist_led.h>

void nfc_playlist_file_select_scene_on_enter(void* context);
bool nfc_playlist_file_select_scene_on_event(void* context, SceneManagerEvent event);
void nfc_playlist_file_select_scene_on_exit(void* context);
void nfc_playlist_file_exists_error_scene_on_enter(void* context);
bool nfc_playlist_file_exists_error_scene_on_event(void* context, SceneManagerEvent event);
void nfc_playlist_file_exists_error_scene_on_exit(void* context);

0 comments on commit 957b673

Please sign in to comment.