Update LocalSettingsDialog::accept()

- Use util::writeSettings() and remove old code.