From 67d245bc2164fe7b95b9a604b429ef777b55f623 Mon Sep 17 00:00:00 2001 From: Qijia Liu Date: Fri, 17 May 2024 08:05:49 -0400 Subject: [PATCH] add synchronize command in api console (#878) --- tools/rime_api_console.cc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tools/rime_api_console.cc b/tools/rime_api_console.cc index f40fe01f39..b6df28a314 100644 --- a/tools/rime_api_console.cc +++ b/tools/rime_api_console.cc @@ -162,6 +162,9 @@ bool execute_special_command(const char* line, RimeSessionId session_id) { printf("%s set %s.\n", option, is_on ? "on" : "off"); return true; } + if (!strcmp(line, "synchronize")) { + return rime->sync_user_data(); + } return false; }