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

Work on deferred projects

This commit is contained in:
Brian Fiete 2021-03-02 06:29:53 -08:00
parent 97d9a4508d
commit 8393f7abde
3 changed files with 21 additions and 4 deletions

View file

@ -506,7 +506,7 @@ namespace IDE.ui
if ((projectSource != null) && (gApp.IsProjectSourceEnabled(projectSource)))
{
var resolveCompiler = gApp.GetProjectCompilerForFile(projectSource.mName);
if (resolveCompiler != null)
if ((resolveCompiler != null) && (gApp.mWorkspace.mProjectLoadState == .Loaded))
{
resolveCompiler.QueueProjectSource(projectSource, .None, false);
resolveCompiler.QueueDeferredResolveAll();
@ -2227,6 +2227,8 @@ namespace IDE.ui
//handled = true;
isFailedLoad = true;
}
else if (project.mDeferState != .None)
isFailedLoad = true;
}
}
}
@ -2456,7 +2458,6 @@ namespace IDE.ui
menu.AddItem();
}
//menu.AddItem();
if (!isFailedLoad)
{
item = menu.AddItem("New Folder");