Fix for saving toolbar visibility settings to configuration file

Hello :)

This patch fixes saving toolbar visibility to configuration file.