Skip to content

Commit 2a02e54

Browse files
committed
fixed Transcript ignored events table
1 parent 2d63c6c commit 2a02e54

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

BigWigs_Transcriptor/Transcriptor.lua

+5-4
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ for i, v in ipairs(events) do
4343
events[i] = nil
4444
end
4545

46+
local ignoredEvents = TranscriptDB and TranscriptDB.ignoredEvents or TranscriptIgnore or {}
4647
-------------------------------------------------------------------------------
4748
-- Locale
4849
--
@@ -114,10 +115,10 @@ local function GetOptions()
114115
type = "multiselect",
115116
name = L["Ignored Events"],
116117
get = function(info, key)
117-
return TranscriptDB.ignoredEvents[key]
118+
return ignoredEvents[key]
118119
end,
119120
set = function(info, value)
120-
TranscriptDB.ignoredEvents[value] = not TranscriptDB.ignoredEvents[value]
121+
ignoredEvents[value] = not ignoredEvents[value]
121122
end,
122123
values = events,
123124
order = 20,
@@ -175,7 +176,7 @@ function plugin:OnPluginEnable()
175176
self:Print(L["Your Transcriptor DB has been reset! You can still view the contents of the DB in your SavedVariables folder until you exit the game or reload your ui."])
176177
TranscriptDB = {ignoredEvents = {}}
177178
for k, v in next, self.db.profile.ignoredEvents do
178-
TranscriptDB.ignoredEvents[k] = v
179+
ignoredEvents[k] = v
179180
end
180181
end
181182
if self.db.profile.enabled then
@@ -217,7 +218,7 @@ function plugin:Start()
217218
Transcriptor:StopLog(true)
218219
end
219220
wipe(self.db.profile.ignoredEvents)
220-
for k, v in next, TranscriptDB.ignoredEvents do
221+
for k, v in next, ignoredEvents do
221222
if v == true then
222223
self.db.profile.ignoredEvents[k] = v
223224
end

0 commit comments

Comments
 (0)