Add updateinterval config to network

This commit is contained in:
2025-01-15 12:56:56 +01:00
parent 241615238c
commit 8cbad47acc
4 changed files with 24 additions and 0 deletions

View File

@@ -1951,6 +1951,21 @@ function shared.Config.Init()
self:SetText(table.concat(Heimdall_Data.config.network.members, ","))
end)
networkConfigFrame:Add(members, 5, 6)
local updateInterval = CreateBasicSmallEditBox("HeimdallNetworkConfigUpdateInterval",
networkConfigFrame.frame, shared.L[Heimdall_Data.config.locale].config.updateInterval,
tostring(Heimdall_Data.config.network.updateInterval),
function(self)
local text = self:GetText()
if string.match(text, "%d+") then
Heimdall_Data.config.network.updateInterval = tonumber(text)
print("Update interval set to", tostring(text))
else
print("Invalid update interval", text)
self:SetText(tostring(Heimdall_Data.config.network.updateInterval))
end
end)
networkConfigFrame:Add(updateInterval, 2, 6)
end
-- Whisper Notify