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

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

Co-authored-by: SG <who.just.the.doctor@gmail.com>
gornekich 4 лет назад
Родитель
Сommit
570f85bd9d
1 измененных файлов с 2 добавлено и 0 удалено
  1. 2 0
      applications/ibutton/scene/ibutton-scene-save-name.cpp

+ 2 - 0
applications/ibutton/scene/ibutton-scene-save-name.cpp

@@ -16,6 +16,8 @@ void iButtonSceneSaveName::on_enter(iButtonApp* app) {
 
     if(strcmp(key_name, "") == 0) {
         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");