Instance check on windows: concider whole window name when searching for another instance
This commit is contained in:
parent
9d71597e05
commit
3d78ae9271
1 changed files with 1 additions and 1 deletions
|
@ -79,7 +79,7 @@ namespace instance_check_internal
|
||||||
return true;
|
return true;
|
||||||
std::wstring classNameString(className);
|
std::wstring classNameString(className);
|
||||||
std::wstring wndTextString(wndText);
|
std::wstring wndTextString(wndText);
|
||||||
if (wndTextString.find(L"PrusaSlicer") == 0 && classNameString == L"wxWindowNR") {
|
if (wndTextString.find(L"PrusaSlicer") != std::wstring::npos && classNameString == L"wxWindowNR") {
|
||||||
//check if other instances has same instance hash
|
//check if other instances has same instance hash
|
||||||
//if not it is not same version(binary) as this version
|
//if not it is not same version(binary) as this version
|
||||||
HANDLE handle = GetProp(hwnd, L"Instance_Hash_Minor");
|
HANDLE handle = GetProp(hwnd, L"Instance_Hash_Minor");
|
||||||
|
|
Loading…
Reference in a new issue