Merge pull request #233 from Jules-A/hideConsole

[Windows] Hide the console window in the current session when disabling in menu.
This commit is contained in:
zeromus 2018-12-02 11:00:52 -06:00 committed by GitHub
commit fe93b70de8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -208,6 +208,7 @@ void CloseConsole()
WritePrivateProfileInt("Console", "PosY", pos.top, IniName);
WritePrivateProfileInt("Console", "Width", width, IniName);
WritePrivateProfileInt("Console", "Height", height, IniName);
ShowWindow(gConsoleWnd, SW_HIDE); // FreeConsole isn't killing the console process in Windows 10 so just hide the window for now.
}
FreeConsole();