MCPcopy Create free account
hub / github.com/ChrisFeldmeier/OpenCodeRust / open

Method open

crates/opencode-tui/src/components/dialogs/timeline.rs:34–42  ·  view source on GitHub ↗
(&mut self, entries: Vec<TimelineEntry>)

Source from the content-addressed store, hash-verified

32 }
33
34 pub fn open(&mut self, entries: Vec<TimelineEntry>) {
35 self.entries = entries;
36 self.state.select(if self.entries.is_empty() {
37 None
38 } else {
39 Some(0)
40 });
41 self.open = true;
42 }
43
44 pub fn close(&mut self) {
45 self.open = false;

Callers

nothing calls this directly

Calls 1

is_emptyMethod · 0.80

Tested by

no test coverage detected