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

Fix for removing project

This commit is contained in:
Brian Fiete 2020-06-05 14:17:06 -07:00
parent abfab35f93
commit 2b574916cc
3 changed files with 9 additions and 3 deletions

View file

@ -390,7 +390,6 @@ namespace IDE.Compiler
if (projectSource.mIncludeKind != .Ignore)
{
BfProject bfProject = null;
using (projectSource.mProject.mMonitor.Enter())
{
projectSourceCommand.mProjectSource.GetFullImportPath(sourceFilePath);
@ -454,10 +453,8 @@ namespace IDE.Compiler
if (hash case .MD5(let md5Hash))
bfParser.SetHashMD5(md5Hash);
//passInstance.SetProject(bfProject);
worked &= bfParser.Parse(passInstance, false);
worked &= bfParser.Reduce(passInstance);
//passInstance.SetProject(bfProject);
worked &= bfParser.BuildDefs(passInstance, null, false);
passKind = .Parse;

View file

@ -447,6 +447,14 @@ namespace IDE
StopWatching();
}
public override void Dispose()
{
for (var item in mChildItems)
{
item.Dispose();
}
}
public void GetRelDir(String path)
{
if (mPath != null)

View file

@ -1234,6 +1234,7 @@ namespace IDE.ui
}
});
project.mRootFolder.Dispose();
RemoveProject(project);
return;
}