From aff77e27d3f717633c0e2326e590dcfc20533f91 Mon Sep 17 00:00:00 2001 From: Don Ho Date: Wed, 8 Sep 2021 13:43:51 +0200 Subject: [PATCH] Fix incremental search panel not translated after startup issue Fix #10478 --- PowerEditor/src/NppCommands.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/PowerEditor/src/NppCommands.cpp b/PowerEditor/src/NppCommands.cpp index 69a79d2bd..8333456ae 100644 --- a/PowerEditor/src/NppCommands.cpp +++ b/PowerEditor/src/NppCommands.cpp @@ -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