acegoal07 1 год назад
Родитель
Сommit
aaa785849a
2 измененных файлов с 3 добавлено и 0 удалено
  1. 2 0
      scences/file_exists_error.c
  2. 1 0
      scences/file_exists_error.h

+ 2 - 0
scences/file_exists_error.c

@@ -8,6 +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_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);
    popup_set_context(nfc_playlist->popup, nfc_playlist);
    view_dispatcher_switch_to_view(nfc_playlist->view_dispatcher, NfcPlaylistView_FileExistsError);
    view_dispatcher_switch_to_view(nfc_playlist->view_dispatcher, NfcPlaylistView_FileExistsError);
+   start_blinking(nfc_playlist->notification, NfcPlaylistLedState_Error);
 }
 }
 
 
 bool nfc_playlist_file_exists_error_scene_on_event(void* context, SceneManagerEvent event) {
 bool nfc_playlist_file_exists_error_scene_on_event(void* context, SceneManagerEvent event) {
@@ -18,6 +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) {
 void nfc_playlist_file_exists_error_scene_on_exit(void* context) {
    NfcPlaylist* nfc_playlist = context;
    NfcPlaylist* nfc_playlist = context;
+   stop_blinking(nfc_playlist->notification);
    popup_reset(nfc_playlist->popup);
    popup_reset(nfc_playlist->popup);
    scene_manager_previous_scene(nfc_playlist->scene_manager);
    scene_manager_previous_scene(nfc_playlist->scene_manager);
 }
 }

+ 1 - 0
scences/file_exists_error.h

@@ -4,6 +4,7 @@
 #include <gui/modules/popup.h>
 #include <gui/modules/popup.h>
 #include <gui/view_dispatcher.h>
 #include <gui/view_dispatcher.h>
 #include <gui/scene_manager.h>
 #include <gui/scene_manager.h>
+#include <lib/led/nfc_playlist_led.h>
 
 
 void nfc_playlist_file_select_scene_on_enter(void* context);
 void nfc_playlist_file_select_scene_on_enter(void* context);
 bool nfc_playlist_file_select_scene_on_event(void* context, SceneManagerEvent event);
 bool nfc_playlist_file_select_scene_on_event(void* context, SceneManagerEvent event);