toolbar: Fix search button and search entry state desync
Sometimes the search button and search entry state can get out of sync as shown in Case A of the issue or following these steps:
- Press the search button (while the search entry is hidden)
- Change directory (while the search entry is shown)
The search button should be updated at every toolbar refresh.
Fixes #570 (closed)