diff options
| author | Michele Bini <michele.bini@gmail.com> | 2022-05-10 23:27:06 (GMT) |
|---|---|---|
| committer | Michele Bini <michele.bini@gmail.com> | 2022-05-11 01:41:52 (GMT) |
| commit | 238cb3f6717547fc522a4c41c8e9d729b1e1ba10 (patch) | |
| tree | 066e7a9ae462aac2a3023d933dca968d630b2bc6 /src/displayapp/screens/Timer.h | |
| parent | 20bf019ed739231714620010248f7e9e409aa919 (diff) | |
Fix previous commit: text not turning red when overtime when the app was open; remove unused code
Diffstat (limited to 'src/displayapp/screens/Timer.h')
| -rw-r--r-- | src/displayapp/screens/Timer.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/displayapp/screens/Timer.h b/src/displayapp/screens/Timer.h index dd55602..3f6d782 100644 --- a/src/displayapp/screens/Timer.h +++ b/src/displayapp/screens/Timer.h @@ -11,14 +11,15 @@ namespace Pinetime::Applications::Screens { class Timer : public Screen { public: - enum class Modes { Normal, Done }; - Timer(DisplayApp* app, Controllers::TimerController& timerController); ~Timer() override; void Refresh() override; void RefreshRunning(); + inline void SetDone() { + RefreshRunning(); + } private: static void btnEventHandler(lv_obj_t* obj, lv_event_t event); inline void OnButtonEvent(lv_obj_t* obj, lv_event_t event) { |
