Merge pull request #7146 from Abextm/loottracker-startup
loottracker: Don't build the panel 1000 times when downloading loot
This commit is contained in:
@@ -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();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user