From 7d4f92e3beb3aaaf40d33aa375a6d992a739bd79 Mon Sep 17 00:00:00 2001 From: NoM0Re <1629787+nom0re@users.noreply.github.com> Date: Mon, 22 Dec 2025 03:50:31 -0700 Subject: [PATCH] remove STATICPOPUP_NUMDIALOGS (cherry picked from commit 83481dad60e044ccdb1cc948571cf849b704f24e) --- .luacheckrc | 1 - WeakAuras/WeakAuras.lua | 2 +- WeakAurasOptions/TriggerOptions.lua | 2 +- WeakAurasOptions/WeakAurasOptions.lua | 3 ++- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.luacheckrc b/.luacheckrc index 1cb3805..72d7497 100644 --- a/.luacheckrc +++ b/.luacheckrc @@ -127,7 +127,6 @@ globals = { "SlashCmdList", "WA_SearchBoxTemplate_OnTextChanged", "SmoothStatusBarMixin", - "STATICPOPUP_NUMDIALOGS", "StaticPopup_Show", "StaticPopupDialogs", "TableHasAnyEntries", diff --git a/WeakAuras/WeakAuras.lua b/WeakAuras/WeakAuras.lua index 850bdf9..a8f6cfb 100644 --- a/WeakAuras/WeakAuras.lua +++ b/WeakAuras/WeakAuras.lua @@ -2281,7 +2281,7 @@ StaticPopupDialogs["WEAKAURAS_CONFIRM_REPAIR"] = { whileDead = 1, showAlert = 1, timeout = 0, - preferredindex = STATICPOPUP_NUMDIALOGS + preferredindex = 4 } function Private.ValidateUniqueDataIds(silent) diff --git a/WeakAurasOptions/TriggerOptions.lua b/WeakAurasOptions/TriggerOptions.lua index 083b8fe..20afbdb 100644 --- a/WeakAurasOptions/TriggerOptions.lua +++ b/WeakAurasOptions/TriggerOptions.lua @@ -402,7 +402,7 @@ function OptionsPrivate.AddTriggerMetaFunctions(options, data, triggernum) showAlert = 1, whileDead = 1, timeout = 0, - preferredindex = STATICPOPUP_NUMDIALOGS, + preferredindex = 4, } triggerDeleteDialogOpen = true StaticPopup_Show("WEAKAURAS_CONFIRM_TRIGGER_DELETE") diff --git a/WeakAurasOptions/WeakAurasOptions.lua b/WeakAurasOptions/WeakAurasOptions.lua index b22ebd5..69b6b16 100644 --- a/WeakAurasOptions/WeakAurasOptions.lua +++ b/WeakAurasOptions/WeakAurasOptions.lua @@ -452,7 +452,8 @@ StaticPopupDialogs["WEAKAURAS_CONFIRM_DELETE"] = { end, showAlert = 1, whileDead = 1, - preferredindex = STATICPOPUP_NUMDIALOGS, + timeout = 0, + preferredindex = 4, } function OptionsPrivate.IsWagoUpdateIgnored(auraId)