From: Lars Op den Kamp Date: Sat, 6 Oct 2012 18:44:14 +0000 (+0200) Subject: fixed - show/hide toggle when hiding the app via the taskbar X-Git-Tag: upstream/2.2.0~1^2~17^2^2~24 X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=177e3a7bd4b27cd89d1bebde78e9dbbd804e0f71;p=deb_libcec.git fixed - show/hide toggle when hiding the app via the taskbar --- 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)