Skip to content

Commit 33281b2

Browse files
authored
adjust code
1 parent e849595 commit 33281b2

File tree

2 files changed

+2
-5
lines changed

2 files changed

+2
-5
lines changed

src/rimestate.cpp

+1-3
Original file line numberDiff line numberDiff line change
@@ -438,9 +438,7 @@ void RimeState::updateUI(InputContext *ic, bool keyRelease) {
438438

439439
updatePreedit(ic, context);
440440

441-
Bool isHidden = api->get_option(session, FCITX_HIDDEN_CANDIDATES);
442-
443-
if (context.menu.num_candidates > 0 && !isHidden) {
441+
if (!api->get_option(session, FCITX_HIDE_CANDIDATES) && context.menu.num_candidates) {
444442
ic->inputPanel().setCandidateList(
445443
std::make_unique<RimeCandidateList>(engine_, ic, context));
446444
} else {

src/rimestate.h

+1-2
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,7 @@
1919
#include <vector>
2020

2121
#define RIME_ASCII_MODE "ascii_mode"
22-
23-
#define FCITX_HIDDEN_CANDIDATES "_hide_candidate"
22+
#define FCITX_HIDE_CANDIDATES "_hide_candidate"
2423

2524
namespace fcitx {
2625

0 commit comments

Comments
 (0)