mirror of
https://github.com/tauri-apps/plugins-workspace.git
synced 2026-08-29 19:50:42 +02:00
feat(clipboard): add plugin (#323)
This commit is contained in:
@@ -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())
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user