correction + regexp
This commit is contained in:
@ -56,8 +56,11 @@ pub fn fetch_history(limit: usize) -> Option<Vec<HistoryItem>> {
|
||||
}
|
||||
}
|
||||
|
||||
pub fn set_clipboard(content: String) {
|
||||
let _ = send_request(&IpcRequest::SetClipboard { content });
|
||||
pub fn set_clipboard(content: String) -> bool {
|
||||
matches!(
|
||||
send_request(&IpcRequest::SetClipboard { content }),
|
||||
Some(IpcResponse::Ok)
|
||||
)
|
||||
}
|
||||
|
||||
pub fn delete_entry(content: String) {
|
||||
|
||||
Reference in New Issue
Block a user