From 0fa09b2fe5d9e61d59e4b0e71d9f639a8c8e8655 Mon Sep 17 00:00:00 2001 From: KyrosKrane Date: Wed, 6 Jun 2018 17:39:01 -0500 Subject: [PATCH] Revert "Made the addon name a constant, in case I decide to rename it at some point." This reverts commit 874bf567db11c935ae2e2c6206ab53b24f41e30d. --- Broker_RaidMakeup.lua | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/Broker_RaidMakeup.lua b/Broker_RaidMakeup.lua index 7f7d4f1..cb6b0d8 100644 --- a/Broker_RaidMakeup.lua +++ b/Broker_RaidMakeup.lua @@ -29,9 +29,6 @@ local pairs = pairs -- Define a global for our namespace local BRM = { } -BRM.ADDON_NAME="Broker_RaidMakeup" -- the internal addon name for LibStub and other addons -BRM.USER_ADDON_NAME="Broker_RaidMakeup" -- the name displayed to the user - --######################################### --# Frame for event handling @@ -419,15 +416,15 @@ end -- BRM:UpdateComposition() --# Actual LibDataBroker object --######################################### -BRM.LDO = _G.LibStub("LibDataBroker-1.1"):NewDataObject(BRM.ADDON_NAME, { +BRM.LDO = _G.LibStub("LibDataBroker-1.1"):NewDataObject("Broker_RaidMakeup", { type = "data source", text = BRM:GetDisplayString(), value = "0", icon = BRM.MainIcon:GetIconString(), - label = BRM.USER_ADDON_NAME, + label = "Broker_RaidMakeup", OnTooltipShow = function(tooltip) if not tooltip or not tooltip.AddLine then return end - tooltip:AddLine(BRM.USER_ADDON_NAME) + tooltip:AddLine("Broker_RaidMakeup") tooltip:AddLine("Click to refresh") end, }) -- BRM.LDO creation @@ -494,7 +491,7 @@ end -- BRM.Events:PLAYER_LOGIN() -- This event is for loading our saved settings. function BRM.Events:ADDON_LOADED(addon) BRM:DebugPrint("Got ADDON_LOADED for " .. addon) - if addon ~= BRM.ADDON_NAME then return end + if addon ~= "Broker_RaidMakeup" then return end --######################################### @@ -530,7 +527,7 @@ function BRM.Events:ADDON_LOADED(addon) -- So, this is the earliest point we can create the minimap icon. BRM.MinimapIcon = LibStub("LibDBIcon-1.0") - BRM.MinimapIcon:Register(BRM.ADDON_NAME, BRM.LDO, BRM.DB.MinimapSettings) + BRM.MinimapIcon:Register("Broker_RaidMakeup", BRM.LDO, BRM.DB.MinimapSettings) end -- BRM.Events:ADDON_LOADED() -- 1.7.9.5