From a7183ad8032a3343c71d125375805d9b60190e20 Mon Sep 17 00:00:00 2001 From: Brian Fiete Date: Tue, 26 Jan 2021 11:06:48 -0800 Subject: [PATCH] Properly use last window position when opening IDE --- IDE/src/IDEApp.bf | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/IDE/src/IDEApp.bf b/IDE/src/IDEApp.bf index 64d5b94c..312a8320 100644 --- a/IDE/src/IDEApp.bf +++ b/IDE/src/IDEApp.bf @@ -11220,6 +11220,9 @@ namespace IDE mRequestedWindowRect = .(workX + (workWidth - width)/2, workY + (workHeight - height)/2, width, height); } + if (!loadedWorkspaceUserData) + CreateDefaultLayout(); + // { BFWindow.Flags flags = .Border | .ThickFrame | .Resizable | .SysMenu | @@ -11247,9 +11250,6 @@ namespace IDE } } - if (!loadedWorkspaceUserData) - CreateDefaultLayout(); - UpdateTitle(); mMainWindow.SetMinimumSize(GS!(480), GS!(360)); mMainWindow.mIsMainWindow = true;