oneLiner - only show the search button if user has the searchbox on the toolbar

How about implementing something like this in oneLiner? For people that just use the address bar for searching and don't have the separate search window displayed, it makes little sense for oneLiner to then put this back on the toolbar - albeit in the form of a small button.

This code works for me, but I would appreciate any feedback as to how to improve it.