From f335dbf7bc81b94081e2f1b49817075fd444679e Mon Sep 17 00:00:00 2001 From: flightlevel Date: Sun, 22 Jul 2018 22:03:04 +1000 Subject: [PATCH] Jackett Tray: Hide from ALT + TAB https://github.com/Jackett/Jackett/issues/1959 --- src/Jackett.Tray/Jackett.Tray.csproj | 2 -- src/Jackett.Tray/Main.cs | 3 +++ src/Jackett.Tray/Program.cs | 2 +- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/src/Jackett.Tray/Jackett.Tray.csproj b/src/Jackett.Tray/Jackett.Tray.csproj index 1db258651..409abe81a 100644 --- a/src/Jackett.Tray/Jackett.Tray.csproj +++ b/src/Jackett.Tray/Jackett.Tray.csproj @@ -42,7 +42,6 @@ - @@ -53,7 +52,6 @@ - diff --git a/src/Jackett.Tray/Main.cs b/src/Jackett.Tray/Main.cs index bf8bda3b1..c2028ca2b 100644 --- a/src/Jackett.Tray/Main.cs +++ b/src/Jackett.Tray/Main.cs @@ -30,6 +30,9 @@ namespace Jackett.Tray Hide(); InitializeComponent(); + WindowState = FormWindowState.Minimized; + FormBorderStyle = FormBorderStyle.FixedToolWindow; + RuntimeSettings runtimeSettings = new RuntimeSettings() { CustomLogFileName = "TrayLog.txt" diff --git a/src/Jackett.Tray/Program.cs b/src/Jackett.Tray/Program.cs index 8d01ddabc..f2d67e145 100644 --- a/src/Jackett.Tray/Program.cs +++ b/src/Jackett.Tray/Program.cs @@ -39,7 +39,7 @@ namespace Jackett.Tray } }); } - catch (Exception e) + catch (Exception) { newVersion = ""; }