Skip to content

Commit

Permalink
Enable table prediction by default on android.
Browse files Browse the repository at this point in the history
  • Loading branch information
wengxt committed Jan 16, 2025
1 parent 0ad3edb commit 83cb9b3
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions im/table/engine.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,11 @@
#include <fcitx-config/option.h>
#include <fcitx-config/rawconfig.h>
#include <fcitx-utils/event.h>
#include <fcitx-utils/eventloopinterface.h>
#include <fcitx-utils/handlertable.h>
#include <fcitx-utils/i18n.h>
#include <fcitx-utils/key.h>
#include <fcitx-utils/misc.h>
#include <fcitx/action.h>
#include <fcitx/addoninstance.h>
#include <fcitx/addonmanager.h>
Expand Down Expand Up @@ -76,10 +78,10 @@ FCITX_CONFIGURATION(
LookupShuangpinProfileEnum::No};

Option<bool> predictionEnabled{this, "Prediction", _("Enable Prediction"),
false};
isAndroid()};
Option<int, IntConstrain> predictionSize{this, "PredictionSize",
_("Prediction Size"), 10,
IntConstrain(3, 20)};);
IntConstrain(3, 100)};);

class TableEngine final : public InputMethodEngine {
public:
Expand Down

0 comments on commit 83cb9b3

Please sign in to comment.