Skip to content

Commit

Permalink
update tip icon after loading schema settings.
Browse files Browse the repository at this point in the history
  • Loading branch information
fxliang committed Dec 19, 2023
1 parent acec2db commit c2485d8
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions RimeWithWeasel/RimeWithWeasel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -170,6 +170,7 @@ UINT RimeWithWeaselHandler::AddSession(LPWSTR buffer, EatLine eat)
m_session_status_map[session_id].__synced = false;
RimeFreeStatus(&status);
}
m_ui->style() = m_session_status_map[session_id].style;
// show session's welcome message :-) if any
if (eat) {
_Respond(session_id, eat);
Expand Down Expand Up @@ -1251,6 +1252,7 @@ void RimeWithWeaselHandler::_GetStatus(Status & stat, UINT session_id, Context&
if(m_session_status_map[session_id].style.inline_preedit != inline_preedit)
_UpdateInlinePreeditStatus(session_id); // in case of inline_preedit set in schema
_RefreshTrayIcon(session_id, _UpdateUICallback); // refresh icon after schema changed
m_ui->style() = m_session_status_map[session_id].style;
if (m_show_notifications_when.find("schema") != m_show_notifications_when.end()) {
ctx.aux.str = stat.schema_name;
m_ui->Update(ctx, stat);
Expand Down

0 comments on commit c2485d8

Please sign in to comment.