(value: boolean)
| 188 | } |
| 189 | |
| 190 | export function setOnboarding(value: boolean): void { |
| 191 | const settings = getPersistedSettings(); |
| 192 | |
| 193 | if (value) { |
| 194 | if (!settings.onboarding) { |
| 195 | settings.onboarding = value; |
| 196 | |
| 197 | write(); |
| 198 | } |
| 199 | } else if (settings.onboarding) { |
| 200 | delete settings.onboarding; |
| 201 | |
| 202 | write(); |
| 203 | } |
| 204 | } |
| 205 | |
| 206 | export function write(): void { |
| 207 | const settings = getPersistedSettings(); |
nothing calls this directly
no test coverage detected