small refactor to MainWindow::SaveSettings
bug fix: window geometry was loaded before UI initialization