pub async fn save_settings(
app: AppHandle,
settings: SettingsDto,
runtime: State<'_, Runtime>,
) -> Result<(), String>Expand description
Validates and saves settings, applies always on top, and changes launch at login. The settings are restored if launch at login can’t be changed.