+fix: regression: initial show NP3 window minimized

This commit is contained in:
METANEOCORTEX\Kotti 2024-03-02 16:10:37 +01:00
parent 431a22d1ff
commit 4c2cdac0c4

View File

@ -1950,7 +1950,7 @@ HWND InitInstance(const HINSTANCE hInstance, int nCmdShow)
SetWindowLong(hwndMain, GWL_STYLE, GetWindowLong(hwndMain, GWL_STYLE) & ~WS_CAPTION);
}
if (s_flagStartAsTrayIcon || (nCmdShow & SW_MINIMIZE)) {
if (s_flagStartAsTrayIcon || (nCmdShow == SW_MINIMIZE) || (nCmdShow == SW_SHOWMINIMIZED)) {
if (Settings.MinimizeToTray) {
MinimizeWndToTray(hwndMain);
}