mirror of
https://github.com/overcuriousity/autopsy-flatpak.git
synced 2025-07-17 18:17:43 +00:00
don't mark groups as unseen unless a file was actually added or removed
This commit is contained in:
parent
e090ff7a5a
commit
a87a665993
@ -133,16 +133,18 @@ public class DrawableGroup implements Comparable<DrawableGroup> {
|
||||
|
||||
synchronized public void addFile(Long f) {
|
||||
invalidateHashSetHitsCount();
|
||||
seen.set(false);
|
||||
if (fileIDs.contains(f) == false) {
|
||||
fileIDs.add(f);
|
||||
seen.set(false);
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
synchronized public void removeFile(Long f) {
|
||||
invalidateHashSetHitsCount();
|
||||
seen.set(false);
|
||||
fileIDs.removeAll(f);
|
||||
if (fileIDs.removeAll(f)) {
|
||||
seen.set(false);
|
||||
}
|
||||
}
|
||||
|
||||
// By default, sort by group key name
|
||||
|
Loading…
x
Reference in New Issue
Block a user