MCPcopy Create free account
hub / github.com/GraphiteEditor/Graphite / clipboard_write

Method clipboard_write

desktop/src/window.rs:214–222  ·  view source on GitHub ↗
(&mut self, data: String)

Source from the content-addressed store, hash-verified

212 pub(crate) fn clipboard_read(&self) -> Option<String> {
213 let Some(clipboard) = &self.clipboard else {
214 tracing::error!("Clipboard not available");
215 return None;
216 };
217 match clipboard.read() {
218 Ok(data) => Some(data),
219 Err(e) => {
220 tracing::error!("Failed to read from clipboard: {e}");
221 None
222 }
223 }
224 }
225

Callers 1

Calls 1

writeMethod · 0.45

Tested by

no test coverage detected