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