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
@ -657,6 +657,17 @@ public final class EventsModel {
|
|||||||
}
|
}
|
||||||
return postTagsDeleted(updatedEventIDs);
|
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
|
* Updates the events model for an artifact tag deleted event and publishes
|
||||||
@ -782,7 +793,6 @@ public final class EventsModel {
|
|||||||
* @throws TskCoreException
|
* @throws TskCoreException
|
||||||
*/
|
*/
|
||||||
public synchronized void invalidateCaches(Collection<Long> updatedEventIDs) throws TskCoreException {
|
public synchronized void invalidateCaches(Collection<Long> updatedEventIDs) throws TskCoreException {
|
||||||
populateDataSourcesCache();
|
|
||||||
minEventTimeCache.invalidateAll();
|
minEventTimeCache.invalidateAll();
|
||||||
maxEventTimeCache.invalidateAll();
|
maxEventTimeCache.invalidateAll();
|
||||||
idsToEventsCache.invalidateAll(emptyIfNull(updatedEventIDs));
|
idsToEventsCache.invalidateAll(emptyIfNull(updatedEventIDs));
|
||||||
|
@ -783,7 +783,7 @@ public class TimeLineController {
|
|||||||
break;
|
break;
|
||||||
case DATA_SOURCE_ADDED:
|
case DATA_SOURCE_ADDED:
|
||||||
future = executor.submit(() -> {
|
future = executor.submit(() -> {
|
||||||
filteredEvents.invalidateCaches(null);
|
filteredEvents.handleDataSourceAdded();
|
||||||
return null;
|
return null;
|
||||||
});
|
});
|
||||||
break;
|
break;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user