From 321f36d11377cf184ee3daeddbfb2a1daf9433ae Mon Sep 17 00:00:00 2001 From: Dmitry Pavlov Date: Wed, 6 Apr 2022 21:34:51 +0300 Subject: [PATCH] [FL-2403] Changed (Name and save) buttons name (#1094) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: あく --- .../ibutton/scene/ibutton_scene_readed_key_menu.cpp | 6 +++--- applications/lfrfid/scene/lfrfid_app_scene_readed_menu.cpp | 6 +++--- applications/notification/notification_messages.c | 2 +- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/applications/ibutton/scene/ibutton_scene_readed_key_menu.cpp b/applications/ibutton/scene/ibutton_scene_readed_key_menu.cpp index 19eec4e22..02d540a24 100644 --- a/applications/ibutton/scene/ibutton_scene_readed_key_menu.cpp +++ b/applications/ibutton/scene/ibutton_scene_readed_key_menu.cpp @@ -4,7 +4,7 @@ typedef enum { SubmenuIndexWrite, SubmenuIndexEmulate, - SubmenuIndexNameAndSave, + SubmenuIndexSave, SubmenuIndexReadNewKey, } SubmenuIndex; @@ -26,7 +26,7 @@ void iButtonSceneReadedKeyMenu::on_enter(iButtonApp* app) { if(ibutton_key_get_type(app->get_key()) == iButtonKeyDS1990) { submenu_add_item(submenu, "Write", SubmenuIndexWrite, submenu_callback, app); } - submenu_add_item(submenu, "Name and save", SubmenuIndexNameAndSave, submenu_callback, app); + submenu_add_item(submenu, "Save", SubmenuIndexSave, submenu_callback, app); submenu_add_item(submenu, "Emulate", SubmenuIndexEmulate, submenu_callback, app); submenu_add_item(submenu, "Read new key", SubmenuIndexReadNewKey, submenu_callback, app); submenu_set_selected_item(submenu, submenu_item_selected); @@ -46,7 +46,7 @@ bool iButtonSceneReadedKeyMenu::on_event(iButtonApp* app, iButtonEvent* event) { case SubmenuIndexEmulate: app->switch_to_next_scene(iButtonApp::Scene::SceneEmulate); break; - case SubmenuIndexNameAndSave: + case SubmenuIndexSave: app->switch_to_next_scene(iButtonApp::Scene::SceneSaveName); break; case SubmenuIndexReadNewKey: diff --git a/applications/lfrfid/scene/lfrfid_app_scene_readed_menu.cpp b/applications/lfrfid/scene/lfrfid_app_scene_readed_menu.cpp index e5ffe562d..9b0a6d8a1 100644 --- a/applications/lfrfid/scene/lfrfid_app_scene_readed_menu.cpp +++ b/applications/lfrfid/scene/lfrfid_app_scene_readed_menu.cpp @@ -2,7 +2,7 @@ typedef enum { SubmenuWrite, - SubmenuNameAndSave, + SubmenuSave, SubmenuEmulate, } SubmenuIndex; @@ -10,7 +10,7 @@ void LfRfidAppSceneReadedMenu::on_enter(LfRfidApp* app, bool need_restore) { auto submenu = app->view_controller.get(); submenu->add_item("Write", SubmenuWrite, submenu_callback, app); - submenu->add_item("Name and Save", SubmenuNameAndSave, submenu_callback, app); + submenu->add_item("Save", SubmenuSave, submenu_callback, app); submenu->add_item("Emulate", SubmenuEmulate, submenu_callback, app); if(need_restore) { @@ -29,7 +29,7 @@ bool LfRfidAppSceneReadedMenu::on_event(LfRfidApp* app, LfRfidApp::Event* event) case SubmenuWrite: app->scene_controller.switch_to_next_scene(LfRfidApp::SceneType::Write); break; - case SubmenuNameAndSave: + case SubmenuSave: app->scene_controller.switch_to_next_scene(LfRfidApp::SceneType::SaveName); break; case SubmenuEmulate: diff --git a/applications/notification/notification_messages.c b/applications/notification/notification_messages.c index 44b005d1e..3934f5d0b 100644 --- a/applications/notification/notification_messages.c +++ b/applications/notification/notification_messages.c @@ -436,4 +436,4 @@ const NotificationSequence sequence_audiovisual_alert = { &message_sound_off, &message_vibro_off, NULL, -}; +}; \ No newline at end of file