From cf03051de9387df0ff45dcf5d13e18db634bf36d Mon Sep 17 00:00:00 2001 From: Adrian L Lange Date: Sun, 6 Oct 2024 19:50:39 +0200 Subject: [PATCH] Remove new state on setting after viewing Fixes p3lim-wow/QuickQuest#99 --- modules/settings.lua | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/modules/settings.lua b/modules/settings.lua index a22fcf9..ad1affe 100644 --- a/modules/settings.lua +++ b/modules/settings.lua @@ -184,7 +184,13 @@ local function registerSetting(category, savedvariable, info) return end - if info.new then + if info.new and not _G[savedvariable][info.key .. '_seen'] then + EventRegistry:RegisterCallback('Settings.CategoryChanged', function(_, cat) + if cat == category then + _G[savedvariable][info.key .. '_seen'] = true + end + end) + -- possibly tainty, and not that clean (it adds new tag to the category list too) local version = GetBuildInfo() if not NewSettings[version] then