Don't close the terminal unless we are actually closing.

This commit is contained in:
Lars Brubaker 2014-12-17 12:50:17 -08:00
parent 4ae0116ecf
commit 38208ae948

View file

@ -393,7 +393,6 @@ namespace MatterHackers.MatterControl
string confirmExit = "Confirm Exit".Localize();
public override void OnClosing(out bool CancelClose)
{
TerminalWindow.CloseIfOpen();
// save the last size of the window so we can restore it next time.
ApplicationSettings.Instance.set("WindowSize", string.Format("{0},{1}", Width, Height));
ApplicationSettings.Instance.set("DesktopPosition", string.Format("{0},{1}", DesktopPosition.x, DesktopPosition.y));