Fix Omen's FuBar plugin issue for right clicks to open the configuration panel interfering with library upgrading paths.

This commit is contained in:
Xinhuan
2008-10-31 12:00:13 +08:00
parent f37af23d48
commit b5699c9390
+2 -2
View File
@@ -489,6 +489,7 @@ function Omen:PLAYER_LOGIN()
self:SetFuBarOption("hasIcon", true)
self:SetFuBarOption("defaultPosition", "RIGHT")
self:SetFuBarOption("tooltipHiddenWhenEmpty", true)
self:SetFuBarOption("configType", "None")
LFBP:OnEmbedInitialize(self)
function Omen:OnUpdateFuBarTooltip()
GameTooltip:AddLine(self.defaultTitle)
@@ -496,9 +497,8 @@ function Omen:PLAYER_LOGIN()
GameTooltip:AddLine("|cffffff00" .. L["Right-click|r to open the options menu"])
end
function Omen:OnFuBarClick(button)
self:Toggle()
if button == "RightButton" then self:ShowConfig() else self:Toggle() end
end
self.OpenMenu = self.ShowConfig
self.optionsFrames["FuBar"] = LibStub("AceConfigDialog-3.0"):AddToBlizOptions("Omen", L["FuBar Options"], "Omen", "FuBar")
self:UpdateFuBarSettings()
end