Fix show/hide closed when refresh

This fixes getData() to correctly set the bug set on refresh. Now
pressing refresh doesn't undo your show/hide closed setting and also
doesn't put you into a weird state.

Fixes #37