Prechádzať zdrojové kódy

pokemon_app.cpp: Clean up double calls in alloc

Kris Bahnsen 2 rokov pred
rodič
commit
00e77015fd
1 zmenil súbory, kde vykonal 1 pridanie a 4 odobranie
  1. 1 4
      pokemon_app.cpp

+ 1 - 4
pokemon_app.cpp

@@ -124,10 +124,7 @@ extern "C" int32_t pokemon_app(void* p) {
     furi_hal_light_set(LightRed, 0x00);
     furi_hal_light_set(LightRed, 0x00);
     furi_hal_light_set(LightGreen, 0x00);
     furi_hal_light_set(LightGreen, 0x00);
     furi_hal_light_set(LightBlue, 0x00);
     furi_hal_light_set(LightBlue, 0x00);
-    view_dispatcher_enable_queue(app->view_dispatcher);
-    view_dispatcher_attach_to_gui(app->view_dispatcher, app->gui, ViewDispatcherTypeFullscreen);
     //switch view  and run dispatcher
     //switch view  and run dispatcher
-    view_dispatcher_switch_to_view(app->view_dispatcher, AppViewSelectPokemon);
     view_dispatcher_run(app->view_dispatcher);
     view_dispatcher_run(app->view_dispatcher);
 
 
     // Free resources
     // Free resources
@@ -135,4 +132,4 @@ extern "C" int32_t pokemon_app(void* p) {
     furi_record_close(RECORD_GUI);
     furi_record_close(RECORD_GUI);
 
 
     return 0;
     return 0;
-}
+}