Port new naming scheme to apps

This commit is contained in:
Willy-JL
2023-09-02 17:16:21 +02:00
parent 6d8ef70f28
commit 58355994ec
12 changed files with 21 additions and 21 deletions

View File

@@ -1,4 +1,4 @@
#include <lib/toolbox/random_name.h>
#include <toolbox/name_generator.h>
#include "../mag_i.h"
void mag_scene_input_name_on_enter(void* context) {
@@ -13,7 +13,7 @@ void mag_scene_input_name_on_enter(void* context) {
if(name_is_empty) {
furi_string_set(mag->file_path, MAG_APP_FOLDER);
set_random_name(mag->text_store, MAG_TEXT_STORE_SIZE);
name_generator_make_auto(mag->text_store, MAG_TEXT_STORE_SIZE, "Mag");
furi_string_set(folder_path, MAG_APP_FOLDER);
} else {
// TODO: compatible types etc