feat(clipboard): add plugin (#323)

This commit is contained in:
Lucas Fernandes Nogueira
2023-04-18 10:19:45 -03:00
committed by GitHub
parent 4539c03f95
commit 8cd7d3501b
37 changed files with 4679 additions and 22 deletions
+2 -4
View File
@@ -2,16 +2,14 @@
// SPDX-License-Identifier: Apache-2.0
// SPDX-License-Identifier: MIT
use tauri::{AppHandle, command, Runtime, State, Window};
use tauri::{AppHandle, command, Runtime, Window};
use crate::{MyState, Result};
use crate::Result;
#[command]
pub(crate) async fn execute<R: Runtime>(
_app: AppHandle<R>,
_window: Window<R>,
state: State<'_, MyState>,
) -> Result<String> {
state.0.lock().unwrap().insert("key".into(), "value".into());
Ok("success".to_string())
}