Skip to content

Commit

Permalink
Fix view_port_update on change pokemon
Browse files Browse the repository at this point in the history
  • Loading branch information
EstebanFuentealba committed Sep 22, 2023
1 parent e54d564 commit b7a8c92
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion views/select_pokemon.c
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,13 @@ static bool select_pokemon_input_callback(InputEvent* event, void* context) {
// Do Nothing
break;
}

with_view_model(
pokemon_fap->select_view,
PokemonFap* model,
{
model->curr_pokemon = selected_pokemon;
},
true);
return consumed;
}

Expand Down

0 comments on commit b7a8c92

Please sign in to comment.