Skip to content

Commit 0f13664

Browse files
committed
Open app window on top of all other windows and fix comment in dialog window
1 parent ec3a0da commit 0f13664

File tree

3 files changed

+20
-1
lines changed

3 files changed

+20
-1
lines changed

src/main/java/com/github/introfog/gitwave/controller/main/ParametersTabController.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ public boolean isValid() {
5757
if (value == null || ONLY_SPACES_PATTERN.matcher(value).matches()) {
5858
LOGGER.warn("Parameter '{}' hasn't been specified yet.", name);
5959
DialogFactory.createErrorAlert("Invalid parameter",
60-
"Parameter {" + name + "} hasn't been specified yet, either remove or set not empty value.", 210);
60+
"Parameter {" + name + "} hasn't been specified yet, either remove or set a non-empty value.", 210);
6161
return false;
6262
}
6363
}

tools/GitWave.exe

512 Bytes
Binary file not shown.

tools/GitWaveExecutor/GitWaveExecutor/GitWaveExecutor.cpp

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,21 @@
11
#include <windows.h>
22

33

4+
BOOL CALLBACK EnumWindowsProc(HWND hwnd, LPARAM lParam)
5+
{
6+
DWORD dwPID;
7+
8+
GetWindowThreadProcessId(hwnd, &dwPID);
9+
10+
if (dwPID == lParam)
11+
{
12+
SetWindowPos(hwnd, HWND_TOP, 0, 0, 0, 0, SWP_NOMOVE | SWP_NOSIZE);
13+
return FALSE;
14+
}
15+
16+
return TRUE;
17+
}
18+
419
int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nCmdShow)
520
{
621
PROCESS_INFORMATION ProcessInfo;
@@ -15,6 +30,10 @@ int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine
1530
NULL, &StartupInfo, &ProcessInfo))
1631
{
1732
WaitForSingleObject(ProcessInfo.hProcess, INFINITE);
33+
34+
// To open app window on top of all other windows
35+
EnumWindows(EnumWindowsProc, reinterpret_cast<LPARAM>(&ProcessInfo.dwProcessId));
36+
1837
CloseHandle(ProcessInfo.hThread);
1938
CloseHandle(ProcessInfo.hProcess);
2039
}

0 commit comments

Comments
 (0)