diff --git a/EnvyUpdate/DashboardPage.xaml.cs b/EnvyUpdate/DashboardPage.xaml.cs index 973dd00..5148583 100644 --- a/EnvyUpdate/DashboardPage.xaml.cs +++ b/EnvyUpdate/DashboardPage.xaml.cs @@ -26,6 +26,9 @@ namespace EnvyUpdate { InitializeComponent(); + if (GlobalVars.startMinimized) + Application.Current.MainWindow.Hide(); // Hide only AFTER initializing dashboard page, otherwise tray icon doesn't work + if (Debug.isFake) localDriv = Debug.LocalDriv(); else diff --git a/EnvyUpdate/EnvyUpdate.csproj b/EnvyUpdate/EnvyUpdate.csproj index 894b162..1c1dfd4 100644 --- a/EnvyUpdate/EnvyUpdate.csproj +++ b/EnvyUpdate/EnvyUpdate.csproj @@ -244,6 +244,9 @@ runtime; build; native; contentfiles; analyzers; buildtransitive all + + 1.1.0 + 7.1.3 diff --git a/EnvyUpdate/GlobalVars.cs b/EnvyUpdate/GlobalVars.cs index e9d8b9b..9b5b943 100644 --- a/EnvyUpdate/GlobalVars.cs +++ b/EnvyUpdate/GlobalVars.cs @@ -12,6 +12,7 @@ namespace EnvyUpdate public static readonly string appdata = Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData) + "\\envyupdate\\"; public static readonly string startup = Environment.GetFolderPath(Environment.SpecialFolder.Startup); public static bool monitoringInstall = false; + public static bool startMinimized = false; public static readonly string useragent = "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:115.0) Gecko/20100101 Firefox/115.0"; } } diff --git a/EnvyUpdate/MainWindow.xaml.cs b/EnvyUpdate/MainWindow.xaml.cs index 5d01b89..c9b0119 100644 --- a/EnvyUpdate/MainWindow.xaml.cs +++ b/EnvyUpdate/MainWindow.xaml.cs @@ -84,7 +84,7 @@ namespace EnvyUpdate { Debug.LogToFile("INFO Launching minimized."); WindowState = WindowState.Minimized; - Hide(); + GlobalVars.startMinimized = true; } GlobalVars.isMobile = Util.IsMobile();