فهرست منبع

Merge pull request #19 from acegoal07/Momentum_Support

Just some small tweaks
acegoal07 1 سال پیش
والد
کامیت
2481c5e535
2فایلهای تغییر یافته به همراه2 افزوده شده و 2 حذف شده
  1. 1 1
      scenes/nfc_playlist_scene_name_new_file.c
  2. 1 1
      scenes/nfc_playlist_scene_playlist_select.c

+ 1 - 1
scenes/nfc_playlist_scene_name_new_file.c

@@ -11,7 +11,7 @@ void nfc_playlist_name_new_file_menu_callback(void* context) {
       File* file = storage_file_alloc(storage);
       File* file = storage_file_alloc(storage);
       if (storage_file_open(file, furi_string_get_cstr(file_name), FSAM_READ_WRITE, FSOM_CREATE_NEW)) {
       if (storage_file_open(file, furi_string_get_cstr(file_name), FSAM_READ_WRITE, FSOM_CREATE_NEW)) {
          storage_file_close(file);
          storage_file_close(file);
-         furi_string_move(nfc_playlist->settings.file_path, file_name);
+         furi_string_swap(nfc_playlist->settings.file_path, file_name);
       }
       }
       storage_file_free(file);
       storage_file_free(file);
    }
    }

+ 1 - 1
scenes/nfc_playlist_scene_playlist_select.c

@@ -2,7 +2,7 @@
 
 
 void nfc_playlist_playlist_select_menu_callback(void* context) {
 void nfc_playlist_playlist_select_menu_callback(void* context) {
    NfcPlaylist* nfc_playlist = context;
    NfcPlaylist* nfc_playlist = context;
-   furi_string_move(nfc_playlist->settings.file_path, nfc_playlist->file_browser_output);
+   furi_string_swap(nfc_playlist->settings.file_path, nfc_playlist->file_browser_output);
    furi_string_reset(nfc_playlist->file_browser_output);
    furi_string_reset(nfc_playlist->file_browser_output);
    scene_manager_previous_scene(nfc_playlist->scene_manager);
    scene_manager_previous_scene(nfc_playlist->scene_manager);
 }
 }