summaryrefslogtreecommitdiff
path: root/src/displayapp/screens/Screen.h
diff options
context:
space:
mode:
authorTim <tim@taenny.de>2021-08-08 14:37:48 +0200
committerGitHub <noreply@github.com>2021-08-08 14:37:48 +0200
commit3e9c30a18fb0a0fa7cc69e62821ca0d11e518f47 (patch)
tree5422eb59505f40c4c5dba1f14dc7608e27c3bcaa /src/displayapp/screens/Screen.h
parentffa51612fc6884ccfeb4f23453acc451692c18b3 (diff)
parent514481ef7f9c71ad816b31d979c6ab39ce9380dd (diff)
Merge branch 'JF002:develop' into set-datetime-manually
Diffstat (limited to 'src/displayapp/screens/Screen.h')
-rw-r--r--src/displayapp/screens/Screen.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/displayapp/screens/Screen.h b/src/displayapp/screens/Screen.h
index 8e49c9de..6c9110c6 100644
--- a/src/displayapp/screens/Screen.h
+++ b/src/displayapp/screens/Screen.h
@@ -13,8 +13,12 @@ namespace Pinetime {
DirtyValue() = default; // Use NSDMI
explicit DirtyValue(T const& v) : value {v} {
} // Use MIL and const-lvalue-ref
- bool IsUpdated() const {
- return isUpdated;
+ bool IsUpdated() {
+ if (this->isUpdated) {
+ this->isUpdated = false;
+ return true;
+ }
+ return false;
}
T const& Get() {
this->isUpdated = false;