Просмотр исходного кода

New naming fixes part 1

thanks @Willy-JL !
MX 2 лет назад
Родитель
Сommit
7de6ad4264
2 измененных файлов с 2 добавлено и 2 удалено
  1. 1 1
      scenes/spi_mem_scene_read_filename.c
  2. 1 1
      spi_mem_app_i.h

+ 1 - 1
scenes/spi_mem_scene_read_filename.c

@@ -11,7 +11,7 @@ void spi_mem_scene_read_set_random_filename(SPIMemApp* app) {
         size_t filename_start = furi_string_search_rchar(app->file_path, '/');
         furi_string_left(app->file_path, filename_start);
     }
-    set_random_name(app->text_buffer, SPI_MEM_TEXT_BUFFER_SIZE);
+    name_generator_make_auto(app->text_buffer, SPI_MEM_TEXT_BUFFER_SIZE, TAG);
 }
 
 void spi_mem_scene_read_filename_on_enter(void* context) {

+ 1 - 1
spi_mem_app_i.h

@@ -15,7 +15,7 @@
 #include <gui/modules/text_input.h>
 #include <storage/storage.h>
 #include <toolbox/path.h>
-#include <toolbox/random_name.h>
+#include <toolbox/name_generator.h>
 #include "scenes/spi_mem_scene.h"
 #include "lib/spi/spi_mem_worker.h"
 #include "spi_mem_manager_icons.h"