Skip to content

Commit

Permalink
Update view value when clearing input field
Browse files Browse the repository at this point in the history
The code now resets the view value to 0 when clearing the input field.
  • Loading branch information
forntoh committed Dec 18, 2024
1 parent 9370ac4 commit c7931ab
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/ItemInput.h
Original file line number Diff line number Diff line change
Expand Up @@ -293,6 +293,7 @@ class ItemInput : public MenuItem {
*/
void clear(MenuRenderer* renderer) {
value[0] = '\0';
view = 0;
draw(renderer);
renderer->drawBlinker();
// Log
Expand Down

0 comments on commit c7931ab

Please sign in to comment.