mirror of
https://github.com/parchlinux/calamares.git
synced 2025-02-26 03:45:44 -05:00
[libcalamares] Allow checking a Once object for repeat messages
This commit is contained in:
parent
9b769f0ae4
commit
ec3282e15d
1 changed files with 6 additions and 0 deletions
|
@ -364,6 +364,12 @@ public:
|
|||
*/
|
||||
void refresh() { m = true; }
|
||||
|
||||
/** @brief Is this object "fresh"?
|
||||
*
|
||||
* Once a Once-object has printed (once) it is no longer fresh.
|
||||
*/
|
||||
operator bool() const { return m; }
|
||||
|
||||
private:
|
||||
mutable bool m = false;
|
||||
};
|
||||
|
|
Loading…
Add table
Reference in a new issue