Skip to main content

reset_profile_to_defaults

Function reset_profile_to_defaults 

Source
pub async fn reset_profile_to_defaults<R: Runtime>(
    app: AppHandle<R>,
    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.