Skip to content

Commit 339c684

Browse files
committed
allow hide candidate list by rime option _hide_candidate
1 parent 91bcb0d commit 339c684

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

src/rimestate.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -408,7 +408,8 @@ void RimeState::updateUI(InputContext *ic, bool keyRelease) {
408408

409409
updatePreedit(ic, context);
410410

411-
if (context.menu.num_candidates) {
411+
if (!api->get_option(session, FCITX_HIDE_CANDIDATES) &&
412+
context.menu.num_candidates) {
412413
ic->inputPanel().setCandidateList(
413414
std::make_unique<RimeCandidateList>(engine_, ic, context));
414415
} else {

src/rimestate.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
#include <vector>
2020

2121
#define RIME_ASCII_MODE "ascii_mode"
22+
#define FCITX_HIDE_CANDIDATES "_hide_candidate"
2223

2324
namespace fcitx {
2425

0 commit comments

Comments
 (0)