aboutsummaryrefslogtreecommitdiffstats
path: root/src/displayapp/screens/settings/SettingWatchFace.h
diff options
context:
space:
mode:
authorRiku Isokoski <riksu9000@gmail.com>2023-02-22 22:05:37 +0200
committerRiku Isokoski <riksu9000@gmail.com>2023-02-25 16:56:03 +0200
commit7c7a8602c473bc160506e064097bd9ecc204425b (patch)
tree1731d2fa118ab899dd9107664122ab6fc4f0679b /src/displayapp/screens/settings/SettingWatchFace.h
parente2d40847015006fb07ee23ea198df8c39b183b58 (diff)
screens: Remove displayapp parameter from screen
The DisplayApp class isn't used in the Screen base class and most screens, so requiring it is pointless. In this commit, DisplayApp pointers were added to screens which use it and the explicit Screen constructor was removed in those screens.
Diffstat (limited to 'src/displayapp/screens/settings/SettingWatchFace.h')
-rw-r--r--src/displayapp/screens/settings/SettingWatchFace.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/displayapp/screens/settings/SettingWatchFace.h b/src/displayapp/screens/settings/SettingWatchFace.h
index 7b8cdcdc..45a50e3d 100644
--- a/src/displayapp/screens/settings/SettingWatchFace.h
+++ b/src/displayapp/screens/settings/SettingWatchFace.h
@@ -25,6 +25,7 @@ namespace Pinetime {
bool OnTouchEvent(TouchEvents event) override;
private:
+ DisplayApp* app;
auto CreateScreenList() const;
std::unique_ptr<Screen> CreateScreen(unsigned int screenNum) const;