# fix\(insights\): re-arm the Clear button when a new insight is stored \(\#364\) · lucenx/codexbar-plasma

[View on GitCafe](https://git.cafe/lucenx/codexbar-plasma/commit/392cbda3616e00742200b8de7dc87ec49a1b5c9a)

Repository: [lucenx/codexbar-plasma](https://git.cafe/lucenx/codexbar-plasma)

Visibility: public

Requested revision: 392cbda3616e00742200b8de7dc87ec49a1b5c9a

Requested commit: 392cbda3616e00742200b8de7dc87ec49a1b5c9a

Commit: 392cbda3616e00742200b8de7dc87ec49a1b5c9a

Tree: 730dab90bc8b23273a075bd1ee87cee9d94885a8

Author: Simone

Committer: GitHub

## Message

```
fix(insights): re-arm the Clear button when a new insight is stored (#364)

The Clear button's enabled binding combines the live cacheStored flag with
the sticky cacheCleared flag, but nothing ever reset the sticky flag, so
pressing Clear and then receiving a new insight left the button disabled
until the settings dialog was reopened. Reset the flag when the cache
becomes non-empty again.

Co-authored-by: Muse Code <muse@example.invalid>
```

## Parents

- [195d082c30e1362eb79b758007c367a66ef19aad](https://git.cafe/lucenx/codexbar-plasma/commit/195d082c30e1362eb79b758007c367a66ef19aad?format=markdown)

[Source at this commit](https://git.cafe/lucenx/codexbar-plasma/tree/392cbda3616e00742200b8de7dc87ec49a1b5c9a?format=markdown)
