mirror of
https://github.com/rizonesoft/Notepad3.git
synced 2026-06-20 21:13:25 +08:00
Merge pull request #5133 from RaiKoHoff/Dev_Master
Fix regression: initial show NP3 window minimized
This commit is contained in:
commit
f557d23297
@ -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);
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user