Closed pan-grayza closed 1 week ago
it needs to be write_text() and read_text() instead of write() and read() plugin code
Good catch, we didn't update that when we updated the apis a few months ago.
The question is, where are app appears from?
Copy paste from the linked discussion: "app
is supposed to be an AppHandle instance which you have access to in the setup
hook or in commands via https://v2.tauri.app/develop/calling-rust/#accessing-an-apphandle-in-commands"
We need to make this clearer somehow, so thanks for the feedback.
The question is, where are ClipKind appears from?
ClipKind is also from before the api update and does not exist anymore.
And why we are importing use tauri_plugin_clipboard_manager::ClipboardExt; when we are not it using anywhere?
This makes the app.clipboard()
call possible.
Discussed in https://github.com/tauri-apps/tauri/discussions/10290