Skip to content

Commit

Permalink
fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
mokapsing committed Apr 3, 2024
1 parent 559e389 commit 4f9b920
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/rimestate.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -418,7 +418,7 @@ void RimeState::restore() {
if (savedCurrentSchema_.empty()) {
return;
}
if (!engine_->schemas().count(savedCurrentSchema_)) {
if (!std::count(engine_->schemas().begin(), engine_->schemas().end(), savedCurrentSchema_) {
return;
}

Expand Down

0 comments on commit 4f9b920

Please sign in to comment.