async fn emit_profile_changed<R: Runtime>( app: &AppHandle<R>, scheduler: &Scheduler, ) -> Result<()>