Skip to content

Commit

Permalink
keep icon not changed when enter schema menu.
Browse files Browse the repository at this point in the history
  • Loading branch information
fxliang committed May 28, 2023
1 parent d397b2c commit 0e9261c
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions RimeWithWeasel/RimeWithWeasel.cpp
Expand Up @@ -1089,10 +1089,12 @@ void RimeWithWeaselHandler::_GetStatus(weasel::Status & stat, UINT session_id)
if (schema_id != m_last_schema_id)
{
m_last_schema_id = schema_id;
RimeSetOption(session_id, "__synced", false); // Sync new schema options with front end
_LoadSchemaSpecificSettings(schema_id);
_UpdateInlinePreeditStatus(session_id); // in case of inline_preedit set in schema
_RefreshTrayIcon(session_id, _UpdateUICallback); // refresh icon after schema changed
if(schema_id != ".default") { // don't load for schema select menu
RimeSetOption(session_id, "__synced", false); // Sync new schema options with front end
_LoadSchemaSpecificSettings(schema_id);
_UpdateInlinePreeditStatus(session_id); // in case of inline_preedit set in schema
_RefreshTrayIcon(session_id, _UpdateUICallback); // refresh icon after schema changed
}
}
stat.schema_name = utf8towcs(status.schema_name);
stat.ascii_mode = !!status.is_ascii_mode;
Expand Down

0 comments on commit 0e9261c

Please sign in to comment.