Skip to content

Commit

Permalink
Add Option to Hide Lone Schema in Schema Menu
Browse files Browse the repository at this point in the history
  • Loading branch information
graphemecluster committed May 10, 2024
1 parent 980074c commit b05da58
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/rime/gear/schema_list_translator.cc
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,14 @@ void SchemaListTranslation::LoadSchemaList(Switcher* switcher) {
return /* continue = */ true;
});
DLOG(INFO) << "num schemata: " << candies_.size();
if (candies_.size() == 1) {
bool hide_lone_schema = false;
config->GetBool("switcher/hide_lone_schema", &hide_lone_schema);
if (hide_lone_schema) {
Next();
return;
}
}
bool fix_order = false;
config->GetBool("switcher/fix_schema_list_order", &fix_order);
if (fix_order)
Expand Down

0 comments on commit b05da58

Please sign in to comment.