Skip to content

Commit

Permalink
add synchronize command in api console (rime#878)
Browse files Browse the repository at this point in the history
  • Loading branch information
eagleoflqj authored May 17, 2024
1 parent 771c94a commit 67d245b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tools/rime_api_console.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit 67d245b

Please sign in to comment.