Merge branch 'fix_13228' of https://github.com/ArkadiuszMichalski/notepad-plus-plus into ArkadiuszMichalski-fix_13228

This commit is contained in:
Don Ho 2023-02-25 18:39:04 +01:00
commit 7c848e89e4
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);
}
}