mirror of
https://github.com/notepad-plus-plus/notepad-plus-plus.git
synced 2025-07-23 05:45:00 +02:00
Fix Notepad++ hanging issue while user uses touch screen to activate Notepad++ windows
Make checkModifiedDocument as thread to avoid Notepad++ hanging while user uses touch screen to activate Notepad++ windows.
This commit is contained in:
parent
715a64a32a
commit
6f4140a281
@ -44,7 +44,11 @@ using namespace std;
|
||||
#define WM_DPICHANGED 0x02E0
|
||||
|
||||
|
||||
|
||||
DWORD WINAPI CheckModifiedDocumentThread(LPVOID)
|
||||
{
|
||||
MainFileManager->checkFilesystemChanges();
|
||||
return 0;
|
||||
}
|
||||
|
||||
struct SortTaskListPred final
|
||||
{
|
||||
@ -1347,7 +1351,11 @@ LRESULT Notepad_plus::process(HWND hwnd, UINT Message, WPARAM wParam, LPARAM lPa
|
||||
if (LOWORD(wParam) && (nppgui._fileAutoDetection != cdDisabled))
|
||||
{
|
||||
_activeAppInf._isActivated = true;
|
||||
checkModifiedDocument();
|
||||
|
||||
//checkModifiedDocument();
|
||||
// Make checkModifiedDocument as thread to avoid Notepad++ hanging while user uses touch screen to activate Notepad++ windows
|
||||
HANDLE hThread = CreateThread(NULL, 0, &CheckModifiedDocumentThread, NULL, 0, NULL);
|
||||
::CloseHandle(hThread);
|
||||
return FALSE;
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user