mirror of
https://github.com/overcuriousity/autopsy-flatpak.git
synced 2025-07-14 17:06:16 +00:00
Merge pull request #5874 from APriestman/6333_changeTimelineEventHandling
6333 Don't load data sources for TIMELINE_EVENT_ADDED
This commit is contained in:
commit
d95cd23546
@ -658,6 +658,17 @@ public final class EventsModel {
|
||||
return postTagsDeleted(updatedEventIDs);
|
||||
}
|
||||
|
||||
/**
|
||||
* Updates the events model for a data source added event.
|
||||
*
|
||||
* @throws TskCoreException If there is an error reading model data from the
|
||||
* case database.
|
||||
*/
|
||||
synchronized void handleDataSourceAdded() throws TskCoreException {
|
||||
populateDataSourcesCache();
|
||||
invalidateCaches(null);
|
||||
}
|
||||
|
||||
/**
|
||||
* Updates the events model for an artifact tag deleted event and publishes
|
||||
* a tag deleted event via the model's event bus.
|
||||
@ -782,7 +793,6 @@ public final class EventsModel {
|
||||
* @throws TskCoreException
|
||||
*/
|
||||
public synchronized void invalidateCaches(Collection<Long> updatedEventIDs) throws TskCoreException {
|
||||
populateDataSourcesCache();
|
||||
minEventTimeCache.invalidateAll();
|
||||
maxEventTimeCache.invalidateAll();
|
||||
idsToEventsCache.invalidateAll(emptyIfNull(updatedEventIDs));
|
||||
|
@ -783,7 +783,7 @@ public class TimeLineController {
|
||||
break;
|
||||
case DATA_SOURCE_ADDED:
|
||||
future = executor.submit(() -> {
|
||||
filteredEvents.invalidateCaches(null);
|
||||
filteredEvents.handleDataSourceAdded();
|
||||
return null;
|
||||
});
|
||||
break;
|
||||
|
Loading…
x
Reference in New Issue
Block a user