updateSettings

fun updateSettings(newSettings: AppSettings)

Updates settings, saves them to file, and applies changes (like language).