Remember preview enabled/disabled setting

Store the state of the preview in the global configuration file.