mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/jpexs-decompiler.git
synced 2026-06-10 05:33:13 +00:00
Proper removing search results on SWF close
This commit is contained in:
@@ -139,7 +139,16 @@ public class SearchResultsStorage {
|
||||
@SuppressWarnings("unchecked")
|
||||
public List<ScriptSearchResult> getSearchResultsAt(Set<SWF> allSwfs, int index) {
|
||||
if (unpackedData.containsKey(index)) {
|
||||
return unpackedData.get(index);
|
||||
|
||||
List<ScriptSearchResult> unpacked = unpackedData.get(index);
|
||||
List<ScriptSearchResult> res = new ArrayList<>();
|
||||
for (ScriptSearchResult sr : unpacked) {
|
||||
if (allSwfs.contains(sr.getSWF())) {
|
||||
res.add(sr);
|
||||
}
|
||||
}
|
||||
|
||||
return res;
|
||||
}
|
||||
List<ScriptSearchResult> result = new ArrayList<>();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user