From 762d52e114e02ef490e7b30a28f99d8b6b880404 Mon Sep 17 00:00:00 2001 From: TailyFair Date: Wed, 18 Jan 2023 18:04:27 +0200 Subject: Fix Apps documentation DisplayApp method name --- doc/code/Apps.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'doc') diff --git a/doc/code/Apps.md b/doc/code/Apps.md index ad0f0403..cb7cd518 100644 --- a/doc/code/Apps.md +++ b/doc/code/Apps.md @@ -95,7 +95,7 @@ in the compilation by adding it to [CMakeLists.txt](/CMakeLists.txt). The next step to making it launchable is to give your app an id. To do this, add an entry in the enum class `Pinetime::Applications::Apps` ([displayapp/Apps.h](/src/displayapp/Apps.h)). Name this entry after your app. Add `#include "displayapp/screens/MyApp.h"` to the file [displayapp/DisplayApp.cpp](/src/displayapp/DisplayApp.cpp). -Now, go to the function `DisplayApp::LoadApp` and add another case to the switch statement. +Now, go to the function `DisplayApp::LoadScreen` and add another case to the switch statement. The case will be the id you gave your app earlier. If your app needs any additional arguments, this is the place to pass them. -- cgit v1.2.3