aboutsummaryrefslogtreecommitdiffstats
path: root/doc/code/Apps.md
diff options
context:
space:
mode:
authoradumelie <git@spes.simplelogin.com>2024-03-14 14:55:06 +0100
committerJF <JF002@users.noreply.github.com>2024-03-14 20:27:19 +0100
commit9aa0bc8ecf382245e3d874fed5cbc699921d05d4 (patch)
tree72bef07c3469a750f219d6078f817483b3ddfe54 /doc/code/Apps.md
parent4d86a3c6c16291be756a94197f73a5ad57a9a0af (diff)
Fix and update documentation
Fixed missing colon typo in template for minimal app example Updated reference to Apps enum after file move
Diffstat (limited to 'doc/code/Apps.md')
-rw-r--r--doc/code/Apps.md4
1 files changed, 2 insertions, 2 deletions
diff --git a/doc/code/Apps.md b/doc/code/Apps.md
index b325fe98..1c8f8da1 100644
--- a/doc/code/Apps.md
+++ b/doc/code/Apps.md
@@ -140,7 +140,7 @@ namespace Pinetime {
}
template <>
- struct AppTraits<Apps:MyApp> {
+ struct AppTraits<Apps::MyApp> {
static constexpr Apps app = Apps::MyApp;
static constexpr const char* icon = Screens::Symbol::myApp;
static Screens::Screens* Create(AppController& controllers) {
@@ -176,7 +176,7 @@ Now we have our very own app, but InfiniTime does not know about it yet.
The first step is to include your `MyApp.cpp` (or any new cpp files for that matter)
in the compilation by adding it to [CMakeLists.txt](/CMakeLists.txt).
The next step to making it launch-able 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)).
+To do this, add an entry in the enum class `Pinetime::Applications::Apps` ([displayapp/apps/Apps.h](/src/displayapp/apps/Apps.h.in)).
Name this entry after your app. Add `#include "displayapp/screens/MyApp.h"`
to the file [displayapp/DisplayApp.cpp](/src/displayapp/DisplayApp.cpp).