Merge pull request #7146 from Abextm/loottracker-startup

loottracker: Don't build the panel 1000 times when downloading loot
This commit is contained in:
Abex
2019-01-01 15:29:00 -07:00
committed by GitHub

View File

@@ -349,16 +349,8 @@ class LootTrackerPanel extends PluginPanel
*/ */
void addRecords(Collection<LootTrackerRecord> recs) void addRecords(Collection<LootTrackerRecord> recs)
{ {
for (LootTrackerRecord r : recs) records.addAll(recs);
{ rebuild();
records.add(r);
LootTrackerBox box = buildBox(r);
if (box != null)
{
box.rebuild();
}
}
updateOverall();
} }
/** /**