From 7ce95f837d4318397e6749250e53fe7a85fe8f77 Mon Sep 17 00:00:00 2001 From: lempamo Date: Sun, 15 Oct 2017 11:40:01 -0400 Subject: hack3 made --- Histacom2/OS/Win98/Win98.cs | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'Histacom2/OS/Win98/Win98.cs') diff --git a/Histacom2/OS/Win98/Win98.cs b/Histacom2/OS/Win98/Win98.cs index 3365def..3795c8b 100644 --- a/Histacom2/OS/Win98/Win98.cs +++ b/Histacom2/OS/Win98/Win98.cs @@ -21,7 +21,7 @@ namespace Histacom2.OS.Win98 public WindowManager wm = new WindowManager(); public List nonimportantapps = new List(); - public WinClassic webchat; + public WebChat1999 webchat; public WinClassic ie; public TaskBarController tb = new TaskBarController(); @@ -331,13 +331,16 @@ namespace Histacom2.OS.Win98 } private void WebChatToolStripMenuItem_Click(object sender, EventArgs e) { - WebChat1999 wc = new WebChat1999(); - WinClassic app = wm.Init(wc, "Web Chat 1999", null, true, true); + if (webchat != null) return; + webchat = new WebChat1999(); + WinClassic app = wm.Init(webchat, "Web Chat 1999", null, true, true); AddTaskBarItem(app, app.Tag.ToString(), "Web Chat 1999", null); app.BringToFront(); startmenu.Hide(); + + app.FormClosing += (s, fe) => webchat = null; } public void NonImportantApp_Closing(object sender, FormClosingEventArgs e) { @@ -456,6 +459,7 @@ namespace Histacom2.OS.Win98 private void TimeDistorterToolStripMenuItem_Click(object sender, EventArgs e) { + if (distort != null) return; distort = new WinClassicTimeDistorter2(); WinClassic app = wm.Init(distort, "Time Distorter", null, false, false, false); AddTaskBarItem(app, app.Tag.ToString(), "Time Distorter", null); -- cgit v1.2.3