Fix LDB Repeat display not resetting when count is reset through config GUI
Erik L. Vonderscheer [08-15-09 - 06:46]
Fix LDB Repeat display not resetting when count is reset through config GUI
diff --git a/TradeFilter3.lua b/TradeFilter3.lua
index bd8873a..ef41685 100644
--- a/TradeFilter3.lua
+++ b/TradeFilter3.lua
@@ -35,7 +35,7 @@ File Date: @file-date-iso@
TradeFilter3 = LibStub("AceAddon-3.0"):NewAddon("TradeFilter3", "AceConsole-3.0", "AceEvent-3.0", "AceTimer-3.0")
local L = LibStub("AceLocale-3.0"):GetLocale("TradeFilter3", true)
local friends = LibStub("LibFriends-1.0")
-local LDB = LibStub("LibDataBroker-1.1")
+local LDB = LibStub("LibDataBroker-1.1", true)
local TF3 = TradeFilter3
local MAJOR_VERSION = "3.1"
diff --git a/TradeFilter3Options.lua b/TradeFilter3Options.lua
index 3895e3a..4235bfc 100644
--- a/TradeFilter3Options.lua
+++ b/TradeFilter3Options.lua
@@ -584,7 +584,7 @@ options = {
desc = L["RPTRESETD"],
func = function()
TF3.db.profile.repeats_blocked = 0
- if (LDB) then
+ if (LibStub("LibDataBroker-1.1", true)) then
TF3Frame.Blocked.text = TF3.db.profile.repeats_blocked .. "Repeats Blocked"
TF3Frame.Blocked.value = TF3.db.profile.repeats_blocked
end