mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-19 00:20:25 +02:00
Fixed project serialization with ignored files
This commit is contained in:
parent
3c9dfc4bef
commit
5fd037bc58
1 changed files with 7 additions and 2 deletions
|
@ -587,7 +587,7 @@ namespace IDE
|
||||||
|
|
||||||
if (mParentFolder != null)
|
if (mParentFolder != null)
|
||||||
{
|
{
|
||||||
data.Add("Type", (mIncludeKind == .Ignore) ? "IgnoreFolder" : "Folder");
|
data.Add("Type", (mIncludeKind == .Ignore) ? "IgnoreFolder" : (mIncludeKind == .Auto) ? "AutoFolder" : "Folder");
|
||||||
base.Serialize(data);
|
base.Serialize(data);
|
||||||
if (mAutoInclude != (mIncludeKind == .Auto))
|
if (mAutoInclude != (mIncludeKind == .Auto))
|
||||||
data.ConditionalAdd("AutoInclude", mAutoInclude, mIncludeKind == .Auto);
|
data.ConditionalAdd("AutoInclude", mAutoInclude, mIncludeKind == .Auto);
|
||||||
|
@ -672,6 +672,11 @@ namespace IDE
|
||||||
projectItem = new ProjectFolder();
|
projectItem = new ProjectFolder();
|
||||||
projectItem.mIncludeKind = .Manual;
|
projectItem.mIncludeKind = .Manual;
|
||||||
}
|
}
|
||||||
|
else if (type == "AutoFolder")
|
||||||
|
{
|
||||||
|
projectItem = new ProjectFolder();
|
||||||
|
projectItem.mIncludeKind = .Auto;
|
||||||
|
}
|
||||||
else if (type == "IgnoreFolder")
|
else if (type == "IgnoreFolder")
|
||||||
{
|
{
|
||||||
projectItem = new ProjectFolder();
|
projectItem = new ProjectFolder();
|
||||||
|
@ -727,7 +732,7 @@ namespace IDE
|
||||||
String fileName = scope String();
|
String fileName = scope String();
|
||||||
fileEntry.GetFileName(fileName);
|
fileEntry.GetFileName(fileName);
|
||||||
|
|
||||||
if (!gApp.IsFilteredOut(fileName))
|
if ((!gApp.IsFilteredOut(fileName)) && (!mChildMap.ContainsKey(fileName)))
|
||||||
{
|
{
|
||||||
let projectItem = new ProjectSource();
|
let projectItem = new ProjectSource();
|
||||||
projectItem.mProject = mProject;
|
projectItem.mProject = mProject;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue