Skip to content

Commit d05098c

Browse files
authored
fix: HOTP counter is not increasing when "OK" button long-pressed (#254)
1 parent a8f53e4 commit d05098c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

totp/ui/scenes/generate_token/totp_scene_generate_token.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -427,13 +427,14 @@ bool totp_scene_generate_token_handle_event(
427427
break;
428428
}
429429
case InputKeyOk:
430-
totp_scene_director_activate_scene(plugin_state, TotpSceneTokenMenu);
431430
break;
432431
case InputKeyBack:
433432
break;
434433
default:
435434
break;
436435
}
436+
} else if(event->input.type == InputTypeShort && event->input.key == InputKeyOk) {
437+
totp_scene_director_activate_scene(plugin_state, TotpSceneTokenMenu);
437438
}
438439

439440
return true;

0 commit comments

Comments
 (0)