Merge branch 'develop' into new_touch_handler

This commit is contained in:
Riku Isokoski
2021-07-25 20:01:09 +03:00
32 changed files with 270 additions and 178 deletions

View File

@@ -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;