Fix incremental search panel not translated after startup issue

Fix #10478
pull/10530/head
Don Ho 2021-09-08 13:43:51 +02:00
parent bd31dbb68f
commit aff77e27d3
1 changed files with 4 additions and 1 deletions

View File

@ -1198,9 +1198,12 @@ void Notepad_plus::command(int id)
const int strSize = FINDREPLACE_MAXLENGTH;
TCHAR str[strSize];
bool isFirstTime = !_incrementFindDlg.isCreated();
static bool isFirstTime = true;
if (isFirstTime)
{
_nativeLangSpeaker.changeDlgLang(_incrementFindDlg.getHSelf(), "IncrementalFind");
isFirstTime = false;
}
_pEditView->getGenericSelectedText(str, strSize, false);
if (0 != str[0]) // the selected text is not empty, then use it