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)