From 5e8d5afe1bdebd11ce0e84bfb194993153c6d2e9 Mon Sep 17 00:00:00 2001 From: Stone_Red <56473591+Stone-Red-Code@users.noreply.github.com> Date: Mon, 29 Dec 2025 01:20:37 +0100 Subject: [PATCH] Fix window not minimizing on startup --- src/InvLock/MainWindow.xaml | 1 + src/InvLock/MainWindow.xaml.cs | 2 -- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/src/InvLock/MainWindow.xaml b/src/InvLock/MainWindow.xaml index b213e80..e67acde 100644 --- a/src/InvLock/MainWindow.xaml +++ b/src/InvLock/MainWindow.xaml @@ -19,6 +19,7 @@ WindowCornerPreference="Round" WindowStartupLocation="CenterScreen" WindowState="Minimized" + ShowInTaskbar="False" Loaded="Window_Loaded" Closing="FluentWindow_Closing" Closed="FluentWindow_Closed" diff --git a/src/InvLock/MainWindow.xaml.cs b/src/InvLock/MainWindow.xaml.cs index a3c4b76..aca9690 100644 --- a/src/InvLock/MainWindow.xaml.cs +++ b/src/InvLock/MainWindow.xaml.cs @@ -51,8 +51,6 @@ public partial class MainWindow : FluentWindow private void Window_Loaded(object sender, RoutedEventArgs e) { - Close(); - lockWindow = new LockWindow(mainWindowDataContext.Settings); lockWindow.Show(); }