Skip to content

Commit

Permalink
allow hide candidate list by rime option _hide_candidate
Browse files Browse the repository at this point in the history
  • Loading branch information
mokapsing committed Jun 27, 2024
1 parent 91bcb0d commit 339c684
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/rimestate.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -408,7 +408,8 @@ void RimeState::updateUI(InputContext *ic, bool keyRelease) {

updatePreedit(ic, context);

if (context.menu.num_candidates) {
if (!api->get_option(session, FCITX_HIDE_CANDIDATES) &&
context.menu.num_candidates) {
ic->inputPanel().setCandidateList(
std::make_unique<RimeCandidateList>(engine_, ic, context));
} else {
Expand Down
1 change: 1 addition & 0 deletions src/rimestate.h
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
#include <vector>

#define RIME_ASCII_MODE "ascii_mode"
#define FCITX_HIDE_CANDIDATES "_hide_candidate"

namespace fcitx {

Expand Down

0 comments on commit 339c684

Please sign in to comment.