Skip to content

Commit a7e8cea

Browse files
authored
allow hide candidate list by rime option _hide_candidate
1 parent 91bcb0d commit a7e8cea

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

Diff for: src/rimestate.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -408,7 +408,7 @@ 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) && context.menu.num_candidates) {
412412
ic->inputPanel().setCandidateList(
413413
std::make_unique<RimeCandidateList>(engine_, ic, context));
414414
} else {

Diff for: src/rimestate.h

+1
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)