From c6188af631a041bf7a1b7beeea5ab4d6f432d266 Mon Sep 17 00:00:00 2001 From: Michael Date: Sun, 7 May 2023 06:05:50 +0200 Subject: [PATCH] Add setters for DynamicNumber prefix and suffix texts (#90) required by RX stat labeling on range check, rf tuning, low/critical warning pages --- radio/src/thirdparty/libopenui/src/static.h | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/radio/src/thirdparty/libopenui/src/static.h b/radio/src/thirdparty/libopenui/src/static.h index 7a6c67ce7..5e83c3777 100644 --- a/radio/src/thirdparty/libopenui/src/static.h +++ b/radio/src/thirdparty/libopenui/src/static.h @@ -178,6 +178,16 @@ class DynamicNumber : public StaticText } } + void setPrefix(const char * value) { + prefix = value; + updateText(); + } + + void setSuffix(const char * value) { + suffix = value; + updateText(); + } + protected: T value = 0; std::function numberHandler;