mirror of
https://github.com/notepad-plus-plus/notepad-plus-plus.git
synced 2025-09-13 04:58:25 +02:00
Fix incremental search panel not translated after startup issue
Fix #10478
This commit is contained in:
parent
bd31dbb68f
commit
aff77e27d3
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user