Skip to content

Commit

Permalink
Merge pull request rizonesoft#5133 from RaiKoHoff/Dev_Master
Browse files Browse the repository at this point in the history
Fix regression: initial show NP3 window minimized
  • Loading branch information
RaiKoHoff committed Mar 2, 2024
2 parents 54673f6 + 4c2cdac commit f557d23
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Notepad3.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit f557d23

Please sign in to comment.