Fix window not minimizing on startup

This commit is contained in:
Stone_Red
2025-12-29 01:20:37 +01:00
parent 99715ded8b
commit 5e8d5afe1b
2 changed files with 1 additions and 2 deletions
+1
View File
@@ -19,6 +19,7 @@
WindowCornerPreference="Round" WindowCornerPreference="Round"
WindowStartupLocation="CenterScreen" WindowStartupLocation="CenterScreen"
WindowState="Minimized" WindowState="Minimized"
ShowInTaskbar="False"
Loaded="Window_Loaded" Loaded="Window_Loaded"
Closing="FluentWindow_Closing" Closing="FluentWindow_Closing"
Closed="FluentWindow_Closed" Closed="FluentWindow_Closed"
-2
View File
@@ -51,8 +51,6 @@ public partial class MainWindow : FluentWindow
private void Window_Loaded(object sender, RoutedEventArgs e) private void Window_Loaded(object sender, RoutedEventArgs e)
{ {
Close();
lockWindow = new LockWindow(mainWindowDataContext.Settings); lockWindow = new LockWindow(mainWindowDataContext.Settings);
lockWindow.Show(); lockWindow.Show();
} }