mirror of
https://github.com/notepad-plus-plus/notepad-plus-plus.git
synced 2025-07-25 23:05:13 +02:00
After FindInFiles operation context menu was no longer accessible.
This commit is contained in:
parent
fe2defb536
commit
d930f10330
@ -1495,7 +1495,6 @@ bool Notepad_plus::replaceInFiles()
|
|||||||
{
|
{
|
||||||
updateOnCount += filesPerPercent;
|
updateOnCount += filesPerPercent;
|
||||||
progress.setPercent((i * 100) / filesCount, fileNames.at(i).c_str());
|
progress.setPercent((i * 100) / filesCount, fileNames.at(i).c_str());
|
||||||
progress.flushCallerUserInput();
|
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
@ -1504,7 +1503,6 @@ bool Notepad_plus::replaceInFiles()
|
|||||||
}
|
}
|
||||||
|
|
||||||
progress.close();
|
progress.close();
|
||||||
progress.flushCallerUserInput();
|
|
||||||
|
|
||||||
_invisibleEditView.execute(SCI_SETDOCPOINTER, 0, oldDoc);
|
_invisibleEditView.execute(SCI_SETDOCPOINTER, 0, oldDoc);
|
||||||
_invisibleEditView.setCurrentBuffer(oldBuf);
|
_invisibleEditView.setCurrentBuffer(oldBuf);
|
||||||
@ -1584,7 +1582,6 @@ bool Notepad_plus::findInFiles()
|
|||||||
{
|
{
|
||||||
updateOnCount += filesPerPercent;
|
updateOnCount += filesPerPercent;
|
||||||
progress.setPercent((i * 100) / filesCount, fileNames.at(i).c_str());
|
progress.setPercent((i * 100) / filesCount, fileNames.at(i).c_str());
|
||||||
progress.flushCallerUserInput();
|
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
@ -1593,7 +1590,6 @@ bool Notepad_plus::findInFiles()
|
|||||||
}
|
}
|
||||||
|
|
||||||
progress.close();
|
progress.close();
|
||||||
progress.flushCallerUserInput();
|
|
||||||
|
|
||||||
_findReplaceDlg.finishFilesSearch(nbTotal);
|
_findReplaceDlg.finishFilesSearch(nbTotal);
|
||||||
|
|
||||||
|
@ -3112,21 +3112,7 @@ void Progress::setPercent(unsigned percent, const TCHAR *fileName) const
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
void Progress::flushCallerUserInput() const
|
DWORD WINAPI Progress::threadFunc(LPVOID data)
|
||||||
{
|
|
||||||
MSG msg;
|
|
||||||
for (HWND hwnd = _hCallerWnd; hwnd; hwnd = ::GetParent(hwnd))
|
|
||||||
{
|
|
||||||
if (::PeekMessage(&msg, hwnd, 0, 0, PM_QS_INPUT | PM_REMOVE))
|
|
||||||
{
|
|
||||||
while (::PeekMessage(&msg, hwnd, 0, 0, PM_QS_INPUT | PM_REMOVE));
|
|
||||||
::UpdateWindow(hwnd);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
DWORD Progress::threadFunc(LPVOID data)
|
|
||||||
{
|
{
|
||||||
Progress* pw = static_cast<Progress*>(data);
|
Progress* pw = static_cast<Progress*>(data);
|
||||||
return (DWORD)pw->thread();
|
return (DWORD)pw->thread();
|
||||||
|
@ -431,7 +431,6 @@ public:
|
|||||||
}
|
}
|
||||||
|
|
||||||
void setPercent(unsigned percent, const TCHAR *fileName) const;
|
void setPercent(unsigned percent, const TCHAR *fileName) const;
|
||||||
void flushCallerUserInput() const;
|
|
||||||
|
|
||||||
private:
|
private:
|
||||||
static const TCHAR cClassName[];
|
static const TCHAR cClassName[];
|
||||||
|
Loading…
x
Reference in New Issue
Block a user