Merge pull request #4131 from millmanorama/TL_disable_known_file_filter

We removed the known_status column from the tsk_events table  but ha…
This commit is contained in:
Brian Carrier 2018-09-20 10:34:45 -04:00 committed by GitHub
commit ac7e607b73
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -52,7 +52,16 @@ final public class FilterTreeItem extends TreeItem<FilterState<?>> {
CompoundFilterState<?, ?> compoundFilter = (CompoundFilterState<?, ?>) filterState;
//add all sub filters
compoundFilter.getSubFilterStates().forEach(subFilterState -> getChildren().add(new FilterTreeItem(subFilterState, expansionMap)));
compoundFilter.getSubFilterStates().forEach(subFilterState -> {
/*
* We removed the known_status column from the tsk_events table
* but have not yet added back the logic to implement that
* filter. For now, just hide it in the UI.
*/
if (subFilterState.getFilter() instanceof TimelineFilter.HideKnownFilter == false) {
getChildren().add(new FilterTreeItem(subFilterState, expansionMap));
}
});
//listen to changes in sub filters and keep tree in sync
compoundFilter.getSubFilterStates().addListener((ListChangeListener.Change<? extends FilterState<?>> change) -> {
while (change.next()) {