Explorar el Código

Remove menu items from card read screen since back button does the same thing

Eric Betts hace 8 meses
padre
commit
47959bece6
Se han modificado 1 ficheros con 0 adiciones y 16 borrados
  1. 0 16
      scenes/picopass_scene_read_card_success.c

+ 0 - 16
scenes/picopass_scene_read_card_success.c

@@ -71,12 +71,6 @@ void picopass_scene_read_card_success_on_enter(void* context) {
             furi_string_cat_printf(credential_str, "Non-HID CSN");
             furi_string_cat_printf(credential_str, "Non-HID CSN");
         }
         }
 
 
-        widget_add_button_element(
-            widget,
-            GuiButtonTypeCenter,
-            "Menu",
-            picopass_scene_read_card_success_widget_callback,
-            picopass);
         widget_add_button_element(
         widget_add_button_element(
             widget,
             widget,
             GuiButtonTypeRight,
             GuiButtonTypeRight,
@@ -97,13 +91,6 @@ void picopass_scene_read_card_success_on_enter(void* context) {
         furi_string_cat_printf(credential_str, "Config Card");
         furi_string_cat_printf(credential_str, "Config Card");
     } else if(empty) {
     } else if(empty) {
         furi_string_cat_printf(credential_str, "Empty");
         furi_string_cat_printf(credential_str, "Empty");
-
-        widget_add_button_element(
-            widget,
-            GuiButtonTypeCenter,
-            "Menu",
-            picopass_scene_read_card_success_widget_callback,
-            picopass);
     } else if(pacs->bitLength == 0 || pacs->bitLength == 255) {
     } else if(pacs->bitLength == 0 || pacs->bitLength == 255) {
         // Neither of these are valid.  Indicates the block was all 0x00 or all 0xff
         // Neither of these are valid.  Indicates the block was all 0x00 or all 0xff
         if(SE) {
         if(SE) {
@@ -219,9 +206,6 @@ bool picopass_scene_read_card_success_on_event(void* context, SceneManagerEvent
             picopass_device_set_name(picopass->dev, "");
             picopass_device_set_name(picopass->dev, "");
             scene_manager_next_scene(picopass->scene_manager, PicopassSceneCardMenu);
             scene_manager_next_scene(picopass->scene_manager, PicopassSceneCardMenu);
             consumed = true;
             consumed = true;
-        } else if(event.event == GuiButtonTypeCenter) {
-            consumed = scene_manager_search_and_switch_to_another_scene(
-                picopass->scene_manager, PicopassSceneStart);
         }
         }
     } else if(event.type == SceneManagerEventTypeBack) {
     } else if(event.type == SceneManagerEventTypeBack) {
         scene_manager_search_and_switch_to_previous_scene(
         scene_manager_search_and_switch_to_previous_scene(