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,5 +1,4 @@
#include "../picopass_i.h"
#include <lib/toolbox/random_name.h>
#include <gui/modules/validators.h>
#include <toolbox/path.h>

View File

@@ -1,5 +1,5 @@
#include "../picopass_i.h"
#include <lib/toolbox/random_name.h>
#include <toolbox/name_generator.h>
#include <gui/modules/validators.h>
#include <toolbox/path.h>
@@ -16,7 +16,7 @@ void picopass_scene_save_name_on_enter(void* context) {
TextInput* text_input = picopass->text_input;
bool dev_name_empty = false;
if(!strcmp(picopass->dev->dev_name, "")) {
set_random_name(picopass->text_store, sizeof(picopass->text_store));
name_generator_make_auto(picopass->text_store, sizeof(picopass->text_store), "PicoPass");
dev_name_empty = true;
} else {
picopass_text_store_set(picopass, picopass->dev->dev_name);