1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-06-16 15:24:10 +02:00

Properly use last window position when opening IDE

This commit is contained in:
Brian Fiete 2021-01-26 11:06:48 -08:00
parent 1e52dce7c4
commit a7183ad803

View file

@ -11220,6 +11220,9 @@ namespace IDE
mRequestedWindowRect = .(workX + (workWidth - width)/2, workY + (workHeight - height)/2, width, height); mRequestedWindowRect = .(workX + (workWidth - width)/2, workY + (workHeight - height)/2, width, height);
} }
if (!loadedWorkspaceUserData)
CreateDefaultLayout();
// //
{ {
BFWindow.Flags flags = .Border | .ThickFrame | .Resizable | .SysMenu | BFWindow.Flags flags = .Border | .ThickFrame | .Resizable | .SysMenu |
@ -11247,9 +11250,6 @@ namespace IDE
} }
} }
if (!loadedWorkspaceUserData)
CreateDefaultLayout();
UpdateTitle(); UpdateTitle();
mMainWindow.SetMinimumSize(GS!(480), GS!(360)); mMainWindow.SetMinimumSize(GS!(480), GS!(360));
mMainWindow.mIsMainWindow = true; mMainWindow.mIsMainWindow = true;