From f58df025234ecc917896de9c9c7d5c7140b20676 Mon Sep 17 00:00:00 2001 From: Adriankhl Date: Wed, 29 May 2024 11:02:13 +0800 Subject: [PATCH] feat: add store_text_finished signal --- src/llm_db.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/llm_db.cpp b/src/llm_db.cpp index 3dd6fb3..f27e5a6 100644 --- a/src/llm_db.cpp +++ b/src/llm_db.cpp @@ -158,7 +158,7 @@ void LlmDB::_bind_methods() { ClassDB::bind_method(D_METHOD("run_retrieve_similar_texts", "text", "where", "n_results"), &LlmDB::run_retrieve_similar_texts); ADD_SIGNAL(MethodInfo("retrieve_similar_texts_finished", PropertyInfo(Variant::PACKED_STRING_ARRAY, "array"))); - + ADD_SIGNAL(MethodInfo("store_text_finished")); } LlmDB::LlmDB() : db_dir {"."}, @@ -948,6 +948,8 @@ void LlmDB::store_text_process() { store_text_queue.pop(); } UtilityFunctions::print_verbose("store_text_process -- done"); + + call_deferred("emit_signal", "store_text_finished"); } Error LlmDB::run_store_text_by_id(String id, String text) {