Skip to content

Commit

Permalink
Tweak
Browse files Browse the repository at this point in the history
  • Loading branch information
nebularg committed May 27, 2021
1 parent 2f6f291 commit 3da2a87
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
8 changes: 4 additions & 4 deletions Main.lua
Original file line number Diff line number Diff line change
Expand Up @@ -1277,6 +1277,10 @@ function PitBull4:OnInitialize()
self.DEFAULT_COLORS = CopyTable(DATABASE_DEFAULTS.profile.colors.power)
DATABASE_DEFAULTS = nil

-- ModuleHandling\Module.lua
self:InitializeModuleDefaults()
self:RegisterEvent("ADDON_LOADED", "HandleModuleLoad")

local LibDataBrokerLauncher = LibStub("LibDataBroker-1.1"):NewDataObject("PitBull4", {
type = "launcher",
icon = [[Interface\AddOns\PitBull4\pitbull]],
Expand Down Expand Up @@ -1305,10 +1309,6 @@ function PitBull4:OnInitialize()
LibDBIcon:Register("PitBull4", LibDataBrokerLauncher, self.db.profile.minimap_icon)
end

-- ModuleHandling\Module.lua
self:InitializeModuleDefaults()
self:RegisterEvent("ADDON_LOADED", "HandleModuleLoad")

self:RegisterEvent("PLAYER_ROLES_ASSIGNED", "OnTanksUpdated")
if oRA3 then
oRA3.RegisterCallback(self, "OnTanksUpdated")
Expand Down
1 change: 0 additions & 1 deletion Modules/Aura/Aura.lua
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ local elapsed_since_text_update = 0
timerFrame:SetScript("OnUpdate",function(self, elapsed)
timer = timer + elapsed
if timer >= 0.2 then
-- XXX Don't blast errors while I work through this
if not PitBull4_Aura.db then
self:Hide()
geterrorhandler()("PitBull4_Aura: There was an error loading the module")
Expand Down

0 comments on commit 3da2a87

Please sign in to comment.