Fix Dock/Undock label when we change localization

This commit is contained in:
ArkadiuszMichalski 2023-02-25 02:58:37 +01:00
parent b1e1361189
commit 4d217387f1
1 changed files with 2 additions and 0 deletions

View File

@ -655,6 +655,8 @@ void NativeLangSpeaker::changeUserDefineLang(UserDefineDialog *userDefineDlg)
if (hItem)
{
const wchar_t *nameW = wmc.char2wchar(name, _nativeLangEncoding);
if (id == IDC_DOCK_BUTTON && userDefineDlg->isDocked())
nameW = getAttrNameByIdStr(TEXT("Undock"), userDefineDlgNode, std::to_string(IDC_UNDOCK_BUTTON).c_str()).c_str();
::SetWindowText(hItem, nameW);
}
}