pub fn load_prefs(state: &mut State)