Skip to content

Commit

Permalink
Move CreateRepHubFrame to OnEnable
Browse files Browse the repository at this point in the history
  • Loading branch information
LorenzoRogai committed Sep 2, 2024
1 parent 80638ed commit 23d36ee
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion RepHub.lua
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,14 @@ function RepHub:OnInitialize()
})
LibDBIcon:Register("RepHub", LibDataBroker, self.db.profile.minimap)
RepHub:RegisterChatCommand("rephub", "HandleCommand")
RepHub:CreateRepHubFrame()
end

function RepHub:OnEnable()
RepHub:RefreshReputationGlobalDB()

if RepHubFrame == nil then
RepHub:CreateRepHubFrame()
end
end

function RepHub:HandleCommand(input)
Expand Down

0 comments on commit 23d36ee

Please sign in to comment.