Prevent inital window from being covering the task bar on restore of windows window

This commit is contained in:
Chandler Cox
2023-09-20 17:58:08 -05:00
parent 92733d1a69
commit ccb3f40de0

View File

@@ -721,7 +721,7 @@ namespace FlaxEditor.Modules
// Create main window
var settings = CreateWindowSettings.Default;
settings.Title = "Flax Editor";
settings.Size = Platform.DesktopSize;
//settings.Size = Platform.DesktopSize;
settings.StartPosition = WindowStartPosition.CenterScreen;
settings.ShowAfterFirstPaint = true;
@@ -746,6 +746,7 @@ namespace FlaxEditor.Modules
return;
}
UpdateWindowTitle();
MainWindow.Maximize();
// Link for main window events
MainWindow.Closing += MainWindow_OnClosing;