loottrackerpanel: use setComponentZOrder instead of remove+add

This commit is contained in:
Adam
2020-06-10 12:48:38 -04:00
parent 243c48bdbf
commit c196cdb430

View File

@@ -503,13 +503,7 @@ class LootTrackerPanel extends PluginPanel
if (box.matches(record))
{
// float the matched box to the top of the UI list if it's not already first
int idx = logsContainer.getComponentZOrder(box);
if (idx > 0)
{
logsContainer.remove(idx);
logsContainer.add(box, 0);
}
logsContainer.setComponentZOrder(box, 0);
box.addKill(record);
return box;
}