OSDN Git Service

If we're minimizing to system tray, and have docked scene viewer, close it down to...
authorLatif Khalifa <latifer@streamgrid.net>
Tue, 16 Aug 2011 12:57:06 +0000 (12:57 +0000)
committerLatif Khalifa <latifer@streamgrid.net>
Tue, 16 Aug 2011 12:57:06 +0000 (12:57 +0000)
git-svn-id: https://radegast.googlecode.com/svn/trunk@1098 f7a694da-4d33-11de-9ad6-1127a62b9fcd

Radegast/GUI/Dialogs/MainForm.cs

index 21abdd3..5170fe8 100644 (file)
@@ -1389,6 +1389,10 @@ namespace Radegast
         {
             if (WindowState == FormWindowState.Minimized && instance.GlobalSettings["minimize_to_tray"].AsBoolean())
             {
+                if (TabConsole.TabExists("scene_window") && !TabConsole.Tabs["scene_window"].Detached )
+                {
+                    TabConsole.Tabs["scene_window"].Close();
+                }
                 ShowInTaskbar = false;
                 trayIcon.Visible = true;
                 FormBorderStyle = FormBorderStyle.SizableToolWindow;