Merge branch 'develop' into refresh_rework

This commit is contained in:
Riku Isokoski
2021-08-03 12:16:40 +03:00
40 changed files with 340 additions and 232 deletions

View File

@@ -14,8 +14,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;