Skip to content

Commit f514673

Browse files
committed
Fix a lua error when adding/removing popup blacklist texts
1 parent ce796b2 commit f514673

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

options.lua

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -27,12 +27,6 @@ ns.defaultOptions = {
2727
-- Using #info here so that the option toggles/buttons/etc can be placed anywhere in the tree below and correctly update the option above via name matching.
2828
local function optionSetter(info, val) ns.Core.db[info[#info]] = val end
2929
local function optionGetter(info) return ns.Core.db[info[#info]] end
30-
local function refreshPopupBlacklist()
31-
for i = 1, 4 do
32-
local popup = _G["StaticPopup" .. i]
33-
ns.Core:OnPopupShow(popup)
34-
end
35-
end
3630

3731
-- only want this for toggles
3832
local function wrapName(name)
@@ -269,7 +263,6 @@ Simply add (part of) the text that appears in the popup, and DialogKey will igno
269263
width = "full",
270264
set = function(_, value)
271265
ns.Core.db.dialogBlacklist[value] = true
272-
refreshPopupBlacklist()
273266
end,
274267
},
275268
removeText = {
@@ -291,7 +284,6 @@ Simply add (part of) the text that appears in the popup, and DialogKey will igno
291284
get = function(_, _) return false end,
292285
set = function(_, index, ...)
293286
ns.Core.db.dialogBlacklist[index] = nil
294-
refreshPopupBlacklist()
295287
end,
296288
},
297289
listOfTexts = {

0 commit comments

Comments
 (0)