Cause found for problem with resizewithwindow plugin after a toolbar switch.

Initial fix profided. The changing of the label name of the maximize button is lost when using the toolbar switch plugin with this fix though.

The prefered solution is that this feature is not lost.
Nothing major but still a nice interface thing to have.