ibutton: fix key name in edit submenu (#450)

Co-authored-by: SG <who.just.the.doctor@gmail.com>
This commit is contained in:
gornekich 2021-05-07 03:39:58 +03:00 committed by GitHub
parent 19637c6fc6
commit 570f85bd9d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -16,6 +16,8 @@ void iButtonSceneSaveName::on_enter(iButtonApp* app) {
if(strcmp(key_name, "") == 0) { if(strcmp(key_name, "") == 0) {
app->generate_random_name(app->get_text_store(), app->get_text_store_size()); app->generate_random_name(app->get_text_store(), app->get_text_store_size());
} else {
app->set_text_store("%s", key_name);
} }
text_input_set_header_text(text_input, "Name the key"); text_input_set_header_text(text_input, "Name the key");