Make find in finder result's text direction follows the search results' one

This commit is contained in:
Don HO 2020-12-15 00:48:20 +01:00
parent bf62bda851
commit 21e9239203
No known key found for this signature in database
GPG Key ID: 6C429F1D8D84F46E
2 changed files with 2 additions and 2 deletions

View File

@ -2477,7 +2477,7 @@ Finder * FindReplaceDlg::createFinder()
pFinder->init(_hInst, (*_ppEditView)->getHParent(), _ppEditView);
tTbData data = { 0 };
bool isRTL = (*_ppEditView)->isTextDirectionRTL();
bool isRTL = _pFinder->_scintView.isTextDirectionRTL();
pFinder->create(&data, isRTL);
::SendMessage(_hParent, NPPM_MODELESSDIALOG, MODELESSDIALOGREMOVE, reinterpret_cast<WPARAM>(pFinder->getHSelf()));
// define the default docking behaviour

View File

@ -1060,7 +1060,7 @@ void FileBrowser::addRootFolder(generic_string rootFolderPath)
NppParameters::getInstance().getNativeLangSpeaker()->messageBox("FolderAsWorspaceSubfolderExists",
_hParent,
TEXT("A sub-folder of the folder you want to add exists.\rPlease remove its root from the panel before you add folder \"$STR_REPLACE$\"."),
TEXT("Folder as WorKspace adding folder problem"),
TEXT("Folder as Workspace adding folder problem"),
MB_OK,
0, // not used
rootFolderPath.c_str());