We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f2f2218 commit 1ae22f4Copy full SHA for 1ae22f4
1 file changed
src/displayapp/screens/Screen.h
@@ -13,8 +13,12 @@ namespace Pinetime {
13
DirtyValue() = default; // Use NSDMI
14
explicit DirtyValue(T const& v) : value {v} {
15
} // Use MIL and const-lvalue-ref
16
- bool IsUpdated() const {
17
- return isUpdated;
+ bool IsUpdated() {
+ if (this->isUpdated) {
18
+ this->isUpdated = false;
19
+ return true;
20
+ }
21
+ return false;
22
}
23
T const& Get() {
24
this->isUpdated = false;
0 commit comments