From 70d82a6ba22165a22b2e0291de73b2e44dac8dce Mon Sep 17 00:00:00 2001 From: Anonomit Date: Sun, 9 Oct 2022 02:21:15 -0400 Subject: [PATCH] Make the cache less eager This will cause additional processing, but reduces the risk of constructor validation failure. --- Config.lua | 10 +++++----- Locale/enUs.lua | 2 +- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/Config.lua b/Config.lua index 5da98ac..24bcec9 100644 --- a/Config.lua +++ b/Config.lua @@ -300,9 +300,9 @@ function Addon:MakeDefaultOptions() constructor = { doValidation = true, - cacheWipeDelay = 10, -- time in seconds without constructor being requested before it's cleared - cacheMinSeenCount = 4, -- minimum number of times constructor must be requested before it can be cached - cacheMinSeenTime = 0.5, -- minimum time in seconds since constructor was first requested before it can be cached + cacheWipeDelay = 3, -- time in seconds without constructor being requested before it's cleared + cacheMinSeenCount = 6, -- minimum number of times constructor must be requested before it can be cached + cacheMinSeenTime = 1, -- minimum time in seconds since constructor was first requested before it can be cached }, cache = { @@ -849,7 +849,7 @@ function Addon:MakePaddingOptions(categoryName, chatCmd, arg1, ...) local opts = GUI:CreateGroupTop(title) CreateCombineStatsOption(opts) - Addon.GUI:CreateToggle(opts, {"pad", "before", "BonusEffect"}, L["Space Above Bonus Effects"]).width = 2 + Addon.GUI:CreateToggle(opts, {"pad", "before", "BonusEffect"}, L["Add Space Above Bonus Effects"]).width = 2 local paddedAfterPrevious = false local combineStats = self:GetOption("allow", "reorder") and self:GetOption"combineStats" @@ -1745,7 +1745,7 @@ function Addon:MakeDebugOptions(categoryName, chatCmd, arg1, ...) local panel = self:CreateOptionsCategory(categoryName, function() local GUI = self.GUI:ResetOrder() - local opts = GUI:CreateGroupTop(title) + local opts = GUI:CreateGroupTop(title, "tab") -- Enable do diff --git a/Locale/enUs.lua b/Locale/enUs.lua index 1310a62..2d4330e 100644 --- a/Locale/enUs.lua +++ b/Locale/enUs.lua @@ -13,7 +13,7 @@ L["Reorder"] = true L["Recolor"] = true L["Group Secondary Stats with Base Stats"] = true -L["Space Above Bonus Effects"] = true +L["Add Space Above Bonus Effects"] = true L["Multiply"] = true L["Multiplier"] = true