Merge pull request #5133 from RaiKoHoff/Dev_Master

Fix regression: initial show NP3 window minimized
This commit is contained in:
Rainer Kottenhoff 2024-03-02 16:11:59 +01:00 committed by GitHub
commit f557d23297
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

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);
}