Add some redundancy to check if LibAboutPanel is loaded.
Ackis [10-22-08 - 17:44]
Add some redundancy to check if LibAboutPanel is loaded.
diff --git a/ARLConfig.lua b/ARLConfig.lua
index c936381..48bfa72 100644
--- a/ARLConfig.lua
+++ b/ARLConfig.lua
@@ -1114,7 +1114,15 @@ function addon:SetupOptions()
self.optionsFrame = AceConfigDialog:AddToBlizOptions(MODNAME, nil, nil, "general")
-- Add in the about panel to the Bliz options (but not the ace3 config)
- self.optionsFrame["About"] = LibStub("LibAboutPanel").new(MODNAME, MODNAME)
+ if LibStub:GetLibrary("LibAboutPanel", true) then
+
+ self.optionsFrame["About"] = LibStub:GetLibrary("LibAboutPanel").new(MODNAME, MODNAME)
+
+ else
+
+ self:Print("Lib About Panel not loaded.")
+
+ end
-- Fill up our modular options...
self:RegisterModuleOptions("Filters", giveFilter(), L["Filtering Options"])
diff --git a/AckisRecipeList.lua b/AckisRecipeList.lua
index e8c7700..61e0968 100644
--- a/AckisRecipeList.lua
+++ b/AckisRecipeList.lua
@@ -1224,15 +1224,33 @@ function addon:ChatCommand(input)
-- Open About panel if there's no parameters or if we do /arl about
if (not input) or (input and input:trim() == "") or (input == string.lower(L["About"]))then
- InterfaceOptionsFrame_OpenToCategory(self.optionsFrame["About"])
+
+ if (self.optionsFrame["About"]) then
+
+ InterfaceOptionsFrame_OpenToCategory(self.optionsFrame["About"])
+
+ else
+
+ InterfaceOptionsFrame_OpenToCategory(self.optionsFrame)
+
+ end
+
elseif (input == string.lower(L["Sorting"])) or (input == string.lower(L["Sort"])) or (input == string.lower(L["Display"])) then
+
InterfaceOptionsFrame_OpenToCategory(self.optionsFrame)
+
elseif (input == string.lower(L["Profile"])) then
+
InterfaceOptionsFrame_OpenToCategory(self.optionsFrame["Profiles"])
+
elseif (input == string.lower(L["Filter"])) then
+
InterfaceOptionsFrame_OpenToCategory(self.optionsFrame["Filters"])
+
else
+ -- What happens when we get here?
LibStub("AceConfigCmd-3.0"):HandleCommand("arl", "Ackis Recipe List", input)
+
end
end
diff --git a/AckisRecipeList.toc b/AckisRecipeList.toc
index 7d9104b..3384c48 100644
--- a/AckisRecipeList.toc
+++ b/AckisRecipeList.toc
@@ -18,7 +18,7 @@
## X-Donate: Donate a few bucks/hours at your local animal shelter, or send me UDE Point codes, a Murky Code, or an account upgrade certificate.
## Interface: 30000
-## Version: Beta 5 r936
+## Version: Beta 5 r937
## X-Revision: $Rev$
## X-Date: $Date$