Complete persisting of the main window settings