Skip to main content

set_active_profile_impl

Function set_active_profile_impl 

Source
pub async fn set_active_profile_impl(
    app: &AppHandle,
    scheduler: &Scheduler,
    name: String,
) -> Result<(), String>
Expand description

Switch the active profile to name. Shared by the Tauri command, the tray-menu handler, and the local-IPC entry point. Resets the per-profile timers (keeping last_sleep) and emits profile:changed.