Focus request/folder after creation

This commit is contained in:
Gregory Schier
2025-11-11 14:11:43 -08:00
parent 8164a61376
commit 7b6278405c
19 changed files with 138 additions and 86 deletions

View File

@@ -77,11 +77,7 @@ pub fn init<R: Runtime>() -> TauriPlugin<R> {
let app_handle = app_handle.clone();
tauri::async_runtime::spawn(async move {
for p in rx {
let name = match p.change {
ModelChangeEvent::Upsert => "upserted_model",
ModelChangeEvent::Delete => "deleted_model",
};
app_handle.emit(name, p).unwrap();
app_handle.emit("model_write", p).unwrap();
}
});
}