mirror of
https://github.com/0PandaDEV/Qopy.git
synced 2025-04-21 21:24:05 +02:00
chunky based retrieve and search through entire db
This commit is contained in:
parent
1e756f8e48
commit
654fec0fa8
2 changed files with 89 additions and 43 deletions
|
@ -218,18 +218,4 @@ pub fn start_monitor(app_handle: AppHandle) -> Result<(), String> {
|
|||
clipboard.start_monitor(app_handle.clone()).map_err(|e| e.to_string())?;
|
||||
app_handle.emit("plugin:clipboard://clipboard-monitor/status", true).map_err(|e| e.to_string())?;
|
||||
Ok(())
|
||||
}
|
||||
|
||||
#[tauri::command]
|
||||
pub fn stop_monitor(app_handle: AppHandle) -> Result<(), String> {
|
||||
let clipboard = app_handle.state::<Clipboard>();
|
||||
clipboard.stop_monitor(app_handle.clone()).map_err(|e| e.to_string())?;
|
||||
app_handle.emit("plugin:clipboard://clipboard-monitor/status", false).map_err(|e| e.to_string())?;
|
||||
Ok(())
|
||||
}
|
||||
|
||||
#[tauri::command]
|
||||
pub fn is_monitor_running(app_handle: AppHandle) -> bool {
|
||||
let clipboard = app_handle.state::<Clipboard>();
|
||||
clipboard.is_monitor_running()
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue