fixed - show/hide toggle when hiding the app via the taskbar
authorLars Op den Kamp <lars@opdenkamp.eu>
Sat, 6 Oct 2012 18:44:14 +0000 (20:44 +0200)
committerLars Op den Kamp <lars@opdenkamp.eu>
Sat, 6 Oct 2012 18:44:14 +0000 (20:44 +0200)
src/LibCecTray/ui/CECTray.cs

index e8dd66b584b8817ad6e5b505d455b17269c81602..a781ce73049fa658b858e1d04dbafaba96436628 100644 (file)
@@ -390,17 +390,9 @@ namespace LibCECTray.ui
     private void CECTrayResize(object sender, EventArgs e)
     {
       if (WindowState == FormWindowState.Minimized)
-      {
-        ShowInTaskbar = false;
-        tsMenuShowHide.Text = Resources.show;
-        _controller.Settings.StartHidden.Value = true;
-      }
+        Hide();
       else
-      {
-        ShowInTaskbar = true;
-        tsMenuShowHide.Text = Resources.hide;
-        _controller.Settings.StartHidden.Value = false;
-      }
+        Show();
     }
 
     private void TsMenuShowHideClick(object sender, EventArgs e)