Skip to content

Commit

Permalink
tweak langbar tooltip
Browse files Browse the repository at this point in the history
  • Loading branch information
dinhngtu committed Dec 1, 2024
1 parent 74a9f6c commit 8684e39
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions VietTypeATL/LanguageBarButton.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -136,11 +136,9 @@ STDMETHODIMP LanguageBarButton::GetTooltipString(__RPC__deref_out_opt BSTR* pbst
if (!pbstrText) {
return E_INVALIDARG;
}
const wchar_t* status = L"";
if (_controller->GetBlocked() == EngineController::BlockedKind::Blocked) {
status = L"Paused";
} else {
status = _controller->IsEnabled() ? L"Vietnamese" : L"English";
const wchar_t* status = Globals::TextServiceDescription;
if (_controller->GetBlocked() != EngineController::BlockedKind::Blocked) {
status = _controller->IsEnabled() ? L"Ti\x1ebfng Vi\x1ec7t" : L"English";
}
*pbstrText = SysAllocString(status);
return *pbstrText ? S_OK : E_OUTOFMEMORY;
Expand Down

0 comments on commit 8684e39

Please sign in to comment.