pub async fn reset_profile_to_defaults(
app: AppHandle,
scheduler: State<'_, Scheduler>,
name: String,
) -> Result<(), String>Expand description
Replace name’s settings with Settings::default(). If name is
the active profile, the in-memory settings are also reset so the
renderer sees the change without a profile switch.