mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-19 00:20:25 +02:00
Fixed some auto-include/ignore project item issues
This commit is contained in:
parent
b42c84b4bd
commit
5d9a5f183d
3 changed files with 64 additions and 35 deletions
|
@ -8225,8 +8225,16 @@ namespace IDE
|
|||
|
||||
public bool IsProjectSourceEnabled(ProjectSource projectSource)
|
||||
{
|
||||
if (projectSource.mIncludeKind == .Ignore)
|
||||
return false;
|
||||
ProjectItem checkItem = projectSource;
|
||||
while (checkItem != null)
|
||||
{
|
||||
if (checkItem.mIncludeKind == .Manual)
|
||||
break;
|
||||
if (checkItem.mIncludeKind == .Ignore)
|
||||
return false;
|
||||
checkItem = checkItem.mParentFolder;
|
||||
}
|
||||
|
||||
if (!IsProjectEnabled(projectSource.mProject))
|
||||
return false;
|
||||
return true;
|
||||
|
@ -12204,7 +12212,7 @@ namespace IDE
|
|||
{
|
||||
if (projectItem.mIncludeKind == .Auto)
|
||||
{
|
||||
mProjectPanel?.DoDeleteItem(listViewItem, null, true);
|
||||
mProjectPanel?.DoDeleteItem(listViewItem, null, .ForceRemove);
|
||||
}
|
||||
}
|
||||
else if (changeType == .FileCreated)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue