mirror of
https://github.com/Stone-Red-Code/InvLock.git
synced 2026-09-04 09:06:13 +02:00
Fix window not minimizing on startup
This commit is contained in:
@@ -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"
|
||||||
|
|||||||
@@ -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();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user