mirror of
https://git.mirrors.martin98.com/https://github.com/prusa3d/PrusaSlicer.git
synced 2025-05-30 18:14:36 +08:00
Instance check on windows: concider whole window name when searching for another instance
This commit is contained in:
parent
9d71597e05
commit
3d78ae9271
@ -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…
x
Reference in New Issue
Block a user