Fix for a white flash when first loading the preferences window.

When using auto layout, the toolbar and window chrome appears white for
a second when the preferences window is first loaded and displayed.

This fixes the issue.