Mercurial > wow > ouroloot
diff core.lua @ 8:30ba1f35e164
Minor tweaks, fold in reload
author | Farmbuyer of US-Kilrogg <farmbuyer@gmail.com> |
---|---|
date | Fri, 17 Jun 2011 00:13:35 +0000 |
parents | df3e27edbd60 |
children | 67b8537e8432 |
line wrap: on
line diff
--- a/core.lua Wed Jun 15 23:35:07 2011 +0000 +++ b/core.lua Fri Jun 17 00:13:35 2011 +0000 @@ -355,7 +355,6 @@ end function addon:OnEnable() - --if not OuroLootSV_hist.PLAYER_LOGOUT then print"did not safely logout?" end; OuroLootSV_hist.PLAYER_LOGOUT = nil self:RegisterEvent "PLAYER_LOGOUT" self:RegisterEvent "RAID_ROSTER_UPDATE" @@ -398,6 +397,7 @@ OuroLootSV = nil OuroLootSV_opts = nil OuroLootSV_hist = nil + ReloadUI() end function addon:PLAYER_LOGOUT() if (#g_loot > 0) or g_loot.saved @@ -412,12 +412,15 @@ OuroLootSV = g_loot end for r,t in pairs(self.history_all) do if type(t) == 'table' then - t.realm = nil - t.st = nil - t.byname = nil + if #t == 0 then + self.history_all[r] = nil + else + t.realm = nil + t.st = nil + t.byname = nil + end end end OuroLootSV_hist = self.history_all - --OuroLootSV_hist.PLAYER_LOGOUT = true end function addon:RAID_ROSTER_UPDATE (event)