MCPcopy Create free account
hub / github.com/bajrangCoder/setu / clear_all_headers

Method clear_all_headers

src/components/header_editor.rs:206–215  ·  view source on GitHub ↗

Clear all header rows

(&mut self, cx: &mut Context<Self>)

Source from the content-addressed store, hash-verified

204 self.ensure_bulk_editor(window, cx);
205 if let Some(ref editor) = self.bulk_editor {
206 editor.update(cx, |state, cx| {
207 state.set_value(text, window, cx);
208 });
209 }
210 self.bulk_mode = true;
211 cx.notify();
212 }
213
214 fn exit_bulk_mode(&mut self, window: &mut Window, cx: &mut Context<Self>) {
215 let text = self
216 .bulk_editor
217 .as_ref()
218 .map(|editor| editor.read(cx).text().to_string())

Callers 1

renderMethod · 0.80

Calls 2

clear_headersMethod · 0.80
clearMethod · 0.45

Tested by

no test coverage detected