local CollectorHelper = LibStub("AceAddon-3.0"):GetAddon("CollectorHelper")
local AceConfigRegistry = LibStub("AceConfigRegistry-3.0")
local AceConfigDialog = LibStub("AceConfigDialog-3.0")

function CollectorHelper:InitOptionsPanel()
    AceConfigRegistry:RegisterOptionsTable("CollectorHelperOptions", self:CreateGeneralOptions())
    AceConfigRegistry:RegisterOptionsTable("CollectorHelperOptions_Recipe", self:CreateRecipeOptions())

    local categoryFrame, mainCategoryID = AceConfigDialog:AddToBlizOptions("CollectorHelperOptions", "CollectorHelper")
    local recipeFrame, cVarCategoryID = AceConfigDialog:AddToBlizOptions("CollectorHelperOptions_Recipe", "Recipes", "CollectorHelper")
    self.MainPanel = mainCategoryID

    C_Timer.After(1.25, function()
        self:UpdateRecipeOptions()
    end)
end
