File tree 2 files changed +5
-7
lines changed
2 files changed +5
-7
lines changed Original file line number Diff line number Diff line change @@ -184,7 +184,7 @@ class RimeEngine final : public InputMethodEngineV2 {
184
184
185
185
FCITX_ADDON_DEPENDENCY_LOADER (notifications, instance_->addonManager ());
186
186
187
- std::unordered_set <std::string> schemas_;
187
+ std::vector <std::string> schemas_;
188
188
std::list<SimpleAction> schemActions_;
189
189
std::unordered_map<std::string,
190
190
std::list<std::unique_ptr<RimeOptionAction>>>
Original file line number Diff line number Diff line change @@ -135,13 +135,11 @@ void RimeState::switchNextSchema() {
135
135
return ;
136
136
}
137
137
targetSchemaId = *schemas.begin ();
138
- if (schemas.count (currentSchemaId)) {
139
- auto it = schemas.find (currentSchemaId);
138
+ auto it = schemas.find (currentSchemaId);
139
+ if (it != schemas.end ()) {
140
+ ++it;
140
141
if (it != schemas.end ()) {
141
- ++it;
142
- if (it != schemas.end ()) {
143
- targetSchemaId = *it;
144
- }
142
+ targetSchemaId = *it;
145
143
}
146
144
}
147
145
if (targetSchemaId.empty ()) {
You can’t perform that action at this time.
0 commit comments