MCPcopy Index your code
hub / github.com/ChrisFeldmeier/OpenCodeRust / set_bool

Method set_bool

crates/opencode-tui/src/context/app_context.rs:407–410  ·  view source on GitHub ↗
(&mut self, key: &str, value: bool)

Source from the content-addressed store, hash-verified

405 }
406
407 fn set_bool(&mut self, key: &str, value: bool) {
408 self.values.insert(key.to_string(), Value::Bool(value));
409 self.persist();
410 }
411
412 fn get_string(&self, key: &str, default: &str) -> String {
413 match self.values.get(key) {

Callers 6

toggle_headerMethod · 0.80
toggle_scrollbarMethod · 0.80
toggle_tips_hiddenMethod · 0.80
toggle_thinkingMethod · 0.80
toggle_tool_detailsMethod · 0.80

Calls 1

persistMethod · 0.45

Tested by

no test coverage detected