pub async fn create_profile(
app: AppHandle,
scheduler: State<'_, Scheduler>,
name: String,
) -> Result<(), String>Expand description
Create a brand-new profile copied from the currently active one.
name must be non-empty (after trim) and not already in use.