comparison core.lua @ 45:352fe939b884 v2.02

settings fix
author "Aaron Bregger <killermonkey99@gmail.com>"
date Tue, 04 Jan 2011 19:06:15 -0600
parents d97f61fad5b6
children bc43986f7fb0
comparison
equal deleted inserted replaced
44:d1b0e573a253 45:352fe939b884
190 self:RegisterEvent("MERCHANT_SHOW", "UpdateButtons") 190 self:RegisterEvent("MERCHANT_SHOW", "UpdateButtons")
191 self:RegisterEvent("MERCHANT_UPDATE", "UpdateButtons") 191 self:RegisterEvent("MERCHANT_UPDATE", "UpdateButtons")
192 self:RegisterEvent("BAG_UPDATE", "UpdateButtons") 192 self:RegisterEvent("BAG_UPDATE", "UpdateButtons")
193 193
194 RecipeProfit:DoMerge() 194 RecipeProfit:DoMerge()
195 if(GatherMate.db.profile.show["RecipeProfit"] ~= "always" and GatherMate.db.profile.show["RecipeProfit"] ~= "never") then
196 GatherMate.db.profile.show["RecipeProfit"] = "always"
197 GatherMate:GetModule("Config"):SendMessage("GatherMate2ConfigChanged")
198 end
195 end 199 end
196 200
197 function RecipeProfit:ShowOptions() 201 function RecipeProfit:ShowOptions()
198 InterfaceOptionsFrame_OpenToCategory("GatherMate 2") 202 InterfaceOptionsFrame_OpenToCategory("GatherMate 2")
199 LibStub("AceConfigDialog-3.0"):SelectGroup("GatherMate 2", "RecipeProfit") 203 LibStub("AceConfigDialog-3.0"):SelectGroup("GatherMate 2", "RecipeProfit")