Make edit_only a setter

So that setting it to true can immediately remove the preview.

Fixes #42