diff options
| author | Steve Amor <steveamor@users.noreply.github.com> | 2025-07-13 07:20:40 +0100 |
|---|---|---|
| committer | JF <JF002@users.noreply.github.com> | 2025-11-04 21:46:23 +0100 |
| commit | e33a83a81129e2337c16f7170e66f801dfc30fbc (patch) | |
| tree | fb8345db84ba170d45091d5793f85e5bc94b3550 /src/displayapp/widgets/PageIndicator.cpp | |
| parent | 026c86ef4a60030c60b4935b50f441aa9f2c8d8a (diff) | |
Adds SetCurrentScreen method to page indicator
Diffstat (limited to 'src/displayapp/widgets/PageIndicator.cpp')
| -rw-r--r-- | src/displayapp/widgets/PageIndicator.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/displayapp/widgets/PageIndicator.cpp b/src/displayapp/widgets/PageIndicator.cpp index a7bcc53f..d8558678 100644 --- a/src/displayapp/widgets/PageIndicator.cpp +++ b/src/displayapp/widgets/PageIndicator.cpp @@ -35,3 +35,9 @@ void PageIndicator::Delete() { lv_obj_del(pageIndicatorBase); lv_obj_del(pageIndicator); } + +void PageIndicator::SetCurrentScreen(uint8_t nScreen) { + Delete(); + nCurrentScreen = nScreen; + Create(); +} |
