Fix deathreporter

This commit is contained in:
2025-01-12 01:16:06 +01:00
parent d333901576
commit 636ef87cb1
6 changed files with 15 additions and 23 deletions

View File

@@ -842,20 +842,20 @@ function shared.Config.Init()
end)
deathReporterConfigFrame:Add(duelThrottle, 2, 6)
local notifyChannel = CreateBasicSmallEditBox("HeimdallDeathReporterConfigNotifyChannel",
deathReporterConfigFrame.frame, shared.L[Heimdall_Data.config.locale].config.notifyChannel,
Heimdall_Data.config.deathReporter.notifyChannel,
local masterChannel = CreateBasicSmallEditBox("HeimdallDeathReporterConfigMasterChannel",
deathReporterConfigFrame.frame, shared.L[Heimdall_Data.config.locale].config.masterChannel,
Heimdall_Data.config.deathReporter.masterChannel,
function(self)
local text = self:GetText()
if string.match(text, "%S+") then
Heimdall_Data.config.deathReporter.notifyChannel = text
print("Notify channel set to", tostring(text))
Heimdall_Data.config.deathReporter.masterChannel = text
print("Master channel set to", tostring(text))
else
print("Invalid channel name", tostring(text))
self:SetText(Heimdall_Data.config.deathReporter.notifyChannel)
self:SetText(Heimdall_Data.config.deathReporter.masterChannel)
end
end)
deathReporterConfigFrame:Add(notifyChannel, 2, 6)
deathReporterConfigFrame:Add(masterChannel, 2, 6)
local zoneOverride = CreateBasicSmallEditBox("HeimdallDeathReporterConfigZoneOverride",
deathReporterConfigFrame.frame, shared.L[Heimdall_Data.config.locale].config.zoneOverride,