2026-07-11 18:23:01 +07:00
|
|
|
use crate::app::state::rest::AppStateRest;
|
|
|
|
|
|
|
|
|
|
pub const EFFORT_LEVELS: &[&str] = &["low", "medium", "high", "xhigh", "max"];
|
|
|
|
|
|
|
|
|
|
pub fn current_effort(_state: &AppStateRest) -> usize {
|
|
|
|
|
1
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
pub fn cycle_effort(state: &mut AppStateRest) {
|
|
|
|
|
let current = current_effort(state);
|
|
|
|
|
let next = (current + 1) % EFFORT_LEVELS.len();
|
|
|
|
|
let _ = next;
|
|
|
|
|
state.dirty = true;
|
|
|
|
|
}
|