Skip to content

Commit 00c4dfb

Browse files
createpjfclaude
andcommitted
fix: add missing Emitter trait import for Tauri event emission
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent dde08e0 commit 00c4dfb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

apps/desktop/src-tauri/src/commands.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
use crate::keychain;
2-
use tauri::Manager;
2+
use tauri::{Emitter, Manager};
33
use tauri_plugin_positioner::{Position, WindowExt};
44
use arboard::Clipboard;
55
use std::sync::Mutex;
@@ -121,7 +121,7 @@ pub fn clipboard_action_sync(app: &tauri::AppHandle, action: &str) -> Result<(),
121121
let mut clipboard = Clipboard::new().map_err(|e| e.to_string())?;
122122
let text = clipboard.get_text().unwrap_or_default();
123123
app.emit("spotlight-action", serde_json::json!({ "action": action, "text": text }))
124-
.map_err(|e| e.to_string())?;
124+
.map_err(|e: tauri::Error| e.to_string())?;
125125
toggle_spotlight_internal(app)?;
126126
Ok(())
127127
}

0 commit comments

Comments
 (0)