Better shortcut (#3147)
This commit is contained in:
committed by
Gav Wood
parent
3cb355d06a
commit
d1b9aa7d73
@@ -69,8 +69,12 @@ int APIENTRY wWinMain(_In_ HINSTANCE hInstance,
|
||||
UNREFERENCED_PARAMETER(lpCmdLine);
|
||||
|
||||
CreateMutex(0, FALSE, _T("Local\\ParityTray"));
|
||||
if (GetLastError() == ERROR_ALREADY_EXISTS)
|
||||
return -1;
|
||||
if (GetLastError() == ERROR_ALREADY_EXISTS) {
|
||||
// open the UI
|
||||
OpenUI();
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
LoadStringW(hInstance, IDS_APP_TITLE, szTitle, MAX_LOADSTRING);
|
||||
LoadStringW(hInstance, IDC_PTRAY, szWindowClass, MAX_LOADSTRING);
|
||||
|
||||
Reference in New Issue
Block a user