acegoal07 1 tahun lalu
induk
melakukan
957b673cf3

+ 0 - 1
lib/worker/nfc_playlist_worker.c

@@ -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);
 }
 

+ 1 - 1
scences/file_edit.c

@@ -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);

+ 2 - 2
scences/file_exists_error.c

@@ -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) {
@@ -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);
 }

+ 3 - 3
scences/file_exists_error.h

@@ -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);