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

View file

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

View file

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