From 1e6c312177b14a734075458efebaa08396dff8ea Mon Sep 17 00:00:00 2001 From: "E.T" Date: Mon, 22 Jan 2024 15:35:29 +0100 Subject: [PATCH] Updated Create a Simple App (markdown) --- Create-a-Simple-App.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Create-a-Simple-App.md b/Create-a-Simple-App.md index bed35f7..8a073a5 100644 --- a/Create-a-Simple-App.md +++ b/Create-a-Simple-App.md @@ -71,12 +71,12 @@ For triggering your new app, you need to add an entry on the main menu. This men ... // Adding NewApp to the Transmitters Menu -TransmittersMenuView::TransmittersMenuView(NavigationView& nav) { +const NavigationView::AppList NavigationView::appList = { add_items({ ... - { "NewApp", ui::Color::red(), &bitmap_icon_remote, [&nav](){ nav.push(); } }, + {"newapp", "NewApp", TX, Color::red(), &bitmap_icon_remote, new ViewFactory()}, }); } ```