Use correct pattern to disallow actions on containers
- Issue MatterHackers/MCCentral#4331 "Add to Bed" appears on folders
This commit is contained in:
parent
4bce728fa5
commit
2cff274e75
1 changed files with 2 additions and 2 deletions
|
|
@ -742,7 +742,7 @@ namespace MatterHackers.MatterControl.PrintLibrary
|
|||
// Multiselect - disallow containers, require View3DWidget context
|
||||
return ApplicationController.Instance.DragDropData.View3DWidget != null
|
||||
&& listView.SelectedItems.Any()
|
||||
&& listView.SelectedItems.All(i => !(i.Model is ILibraryContainer));
|
||||
&& listView.SelectedItems.All(i => !(i.Model is ILibraryContainerLink));
|
||||
}
|
||||
});
|
||||
|
||||
|
|
@ -1008,7 +1008,7 @@ namespace MatterHackers.MatterControl.PrintLibrary
|
|||
{
|
||||
// Multiselect - disallow containers
|
||||
return listView.SelectedItems.Any()
|
||||
&& listView.SelectedItems.All(i => !(i.Model is ILibraryContainer));
|
||||
&& listView.SelectedItems.All(i => !(i.Model is ILibraryContainerLink));
|
||||
}
|
||||
});
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue