scene_menu.c 828 B

1234567891011121314151617
  1. #include "../subghz_playlist_creator.h"
  2. #include "scene_menu.h"
  3. #define TAG "PlaylistMenuScene"
  4. void scene_menu_show(SubGhzPlaylistCreator* app) {
  5. app->current_view = SubGhzPlaylistCreatorViewSubmenu;
  6. FURI_LOG_D(TAG, "Showing menu view. Dispatcher: %p, Submenu View: %p, ViewId: %lu", app->view_dispatcher, submenu_get_view(app->submenu), (uint32_t)SubGhzPlaylistCreatorViewSubmenu);
  7. view_dispatcher_switch_to_view(app->view_dispatcher, SubGhzPlaylistCreatorViewSubmenu);
  8. }
  9. // Add the definition for scene_menu_init_view
  10. void scene_menu_init_view(SubGhzPlaylistCreator* app) {
  11. // The view (submenu in this case) is allocated in subghz_playlist_creator_alloc
  12. // And added to the dispatcher there.
  13. // This function can remain empty for now if allocation and adding are done elsewhere.
  14. UNUSED(app);
  15. }