From 4fa7c416aa61cbcd95627246a4eef5615c300ac1 Mon Sep 17 00:00:00 2001 From: shagu Date: Thu, 9 Nov 2017 23:25:10 +0100 Subject: [PATCH] unitframes: use less indicator updates --- api/unitframes.lua | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/api/unitframes.lua b/api/unitframes.lua index ba18c83b..76b3e413 100644 --- a/api/unitframes.lua +++ b/api/unitframes.lua @@ -882,14 +882,14 @@ function pfUI.uf:RefreshUnit(unit, component) break end end - - -- add icons for every found buff - for pos, icon in pairs(active) do - pfUI.uf:AddIcon(unit, pos, icon) - end end end + -- add icons for every found buff + for pos, icon in pairs(active) do + pfUI.uf:AddIcon(unit, pos, icon) + end + -- hide unued icon slots for pos=table.getn(active)+1, 6 do pfUI.uf:HideIcon(unit, pos)