| 25 | constexpr auto* PREFERENCES_KEY_COMPLETED = "completed"; |
| 26 | |
| 27 | bool isCompleted() { |
| 28 | Preferences preferences(PREFERENCES_NAMESPACE); |
| 29 | bool completed = false; |
| 30 | preferences.optBool(PREFERENCES_KEY_COMPLETED, completed); |
| 31 | return completed; |
| 32 | } |
| 33 | |
| 34 | static void markCompleted() { |
| 35 | Preferences preferences(PREFERENCES_NAMESPACE); |