Skip to content

Commit

Permalink
Make RimeEngine::firstRun_ static. (#78)
Browse files Browse the repository at this point in the history
  • Loading branch information
rocka authored Oct 21, 2023
1 parent c71ea8c commit af62377
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions src/rimeengine.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -246,6 +246,8 @@ class SelectAction : public Action {
Menu menu_;
};

bool RimeEngine::firstRun_ = true;

RimeEngine::RimeEngine(Instance *instance)
: instance_(instance), api_(EnsureRimeApi()),
factory_([this](InputContext &ic) { return new RimeState(this, ic); }),
Expand Down
2 changes: 1 addition & 1 deletion src/rimeengine.h
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ class RimeEngine final : public InputMethodEngineV2 {
Instance *instance_;
EventDispatcher eventDispatcher_;
rime_api_t *api_;
bool firstRun_ = true;
static bool firstRun_;
uint64_t blockNotificationBefore_ = 0;
FactoryFor<RimeState> factory_;

Expand Down

0 comments on commit af62377

Please sign in to comment.