Skip to main content

reset_timers_keep_sleep

Function reset_timers_keep_sleep 

Source
pub fn reset_timers_keep_sleep(t: &mut BreakTimers)
Expand description

Reset the micro / long timers and clear deferral / postpone state without disturbing last_sleep or active_break. Called when the active profile switches: a new profile gets fresh intervals but we don’t want to re-fire a sleep prompt that’s already shown today.