Skip to content

Commit

Permalink
fix: addon now initialises with its correct load state
Browse files Browse the repository at this point in the history
  • Loading branch information
zeevallin committed Jan 2, 2021
1 parent 5885562 commit 8b6c821
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions Loot.lua
Original file line number Diff line number Diff line change
Expand Up @@ -465,6 +465,12 @@ function Addon:OnInitialize()
self:RegisterChatCommand("loot", function() self:SendMessage("ADDON_LOOT_UI_ACTION_WINDOW_OPEN") end)

self.icon:Register("Loot", self.broker, self.db.profile.minimap)

if self.db.profile.enable then
self:Enable()
else
self:Disable()
end
end

function Addon:OnEnable()
Expand Down

0 comments on commit 8b6c821

Please sign in to comment.