mirror of
https://github.com/Next-Flip/Momentum-Firmware.git
synced 2026-05-14 06:08:35 -07:00
Port new naming scheme to apps
This commit is contained in:
@@ -1,5 +1,4 @@
|
||||
#include "../picopass_i.h"
|
||||
#include <lib/toolbox/random_name.h>
|
||||
#include <gui/modules/validators.h>
|
||||
#include <toolbox/path.h>
|
||||
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user