Skip to content

Commit 9338f00

Browse files
authored
fix: show MapEditor upon starting the editor (AscensionGameDev#2197)
After upgrading to .NET7, starting the editor shows up the MapGrid (world view) window tab as selected instead of the MapEditor. Seeing the code, this is what actually makes sense, no idea why it wasn't behaving like this before upgrading, but the expected behavior is to have the MapEditor to show up at the end of the form initialization. This commit sets it to be shown by the end, giving us back the expected behavior.
1 parent 301952d commit 9338f00

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

Intersect.Editor/Forms/frmMain.cs

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -92,15 +92,14 @@ public FrmMain()
9292

9393
dockLeft.Theme = new VS2015DarkTheme();
9494
Globals.MapListWindow = new FrmMapList();
95-
Globals.MapListWindow.Show(dockLeft, DockState.DockRight);
9695
Globals.MapLayersWindow = new FrmMapLayers();
97-
Globals.MapLayersWindow.Show(dockLeft, DockState.DockLeft);
98-
96+
Globals.MapGridWindowNew = new FrmMapGrid();
9997
Globals.MapEditorWindow = new FrmMapEditor();
100-
Globals.MapEditorWindow.Show(dockLeft, DockState.Document);
10198

102-
Globals.MapGridWindowNew = new FrmMapGrid();
99+
Globals.MapListWindow.Show(dockLeft, DockState.DockRight);
100+
Globals.MapLayersWindow.Show(dockLeft, DockState.DockLeft);
103101
Globals.MapGridWindowNew.Show(dockLeft, DockState.Document);
102+
Globals.MapEditorWindow.Show(dockLeft, DockState.Document);
104103
}
105104

106105
[System.Runtime.InteropServices.DllImport("user32.dll")]

0 commit comments

Comments
 (0)