Browse Source

Fix view_port_update on change pokemon

Esteban Fuentealba 2 years ago
parent
commit
b7a8c926c6
1 changed files with 7 additions and 1 deletions
  1. 7 1
      views/select_pokemon.c

+ 7 - 1
views/select_pokemon.c

@@ -87,7 +87,13 @@ static bool select_pokemon_input_callback(InputEvent* event, void* context) {
         // Do Nothing
         // Do Nothing
         break;
         break;
     }
     }
-
+    with_view_model(
+        pokemon_fap->select_view,
+        PokemonFap* model,
+        {
+            model->curr_pokemon = selected_pokemon;
+        },
+        true);
     return consumed;
     return consumed;
 }
 }