From 177e3a7bd4b27cd89d1bebde78e9dbbd804e0f71 Mon Sep 17 00:00:00 2001 From: Lars Op den Kamp Date: Sat, 6 Oct 2012 20:44:14 +0200 Subject: [PATCH] fixed - show/hide toggle when hiding the app via the taskbar --- src/LibCecTray/ui/CECTray.cs | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/src/LibCecTray/ui/CECTray.cs b/src/LibCecTray/ui/CECTray.cs index e8dd66b..a781ce7 100644 --- a/src/LibCecTray/ui/CECTray.cs +++ b/src/LibCecTray/ui/CECTray.cs @@ -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) -- 2.34.1