diff options
Diffstat (limited to 'src/displayapp/UserApps.h')
| -rw-r--r-- | src/displayapp/UserApps.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/displayapp/UserApps.h b/src/displayapp/UserApps.h index 8dc11442..25926edc 100644 --- a/src/displayapp/UserApps.h +++ b/src/displayapp/UserApps.h @@ -26,6 +26,7 @@ namespace Pinetime { Apps app; const char* icon; Screens::Screen* (*create)(AppControllers& controllers); + bool (*isAvailable)(Controllers::FS& fileSystem); }; struct WatchFaceDescription { @@ -37,7 +38,7 @@ namespace Pinetime { template <Apps t> consteval AppDescription CreateAppDescription() { - return {AppTraits<t>::app, AppTraits<t>::icon, &AppTraits<t>::Create}; + return {AppTraits<t>::app, AppTraits<t>::icon, &AppTraits<t>::Create, &AppTraits<t>::IsAvailable}; } template <WatchFace t> |
