Przeglądaj źródła

fix: HOTP counter is not increasing when "OK" button long-pressed (#254)

Alexander Kopachov 9 miesięcy temu
rodzic
commit
eb6385d6fa

+ 2 - 1
ui/scenes/generate_token/totp_scene_generate_token.c

@@ -427,13 +427,14 @@ bool totp_scene_generate_token_handle_event(
             break;
         }
         case InputKeyOk:
-            totp_scene_director_activate_scene(plugin_state, TotpSceneTokenMenu);
             break;
         case InputKeyBack:
             break;
         default:
             break;
         }
+    } else if(event->input.type == InputTypeShort && event->input.key == InputKeyOk) {
+        totp_scene_director_activate_scene(plugin_state, TotpSceneTokenMenu);
     }
 
     return true;