From 1be2ace96660da265b5f17364c8d3256cba9d708 Mon Sep 17 00:00:00 2001 From: Buds Date: Mon, 4 Sep 2023 17:39:20 +0200 Subject: [PATCH] Fix spell fields focus for non-aura triggers and load options --- WeakAurasOptions/LoadOptions.lua | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/WeakAurasOptions/LoadOptions.lua b/WeakAurasOptions/LoadOptions.lua index 36f00823b8..3968f5ac0d 100644 --- a/WeakAurasOptions/LoadOptions.lua +++ b/WeakAurasOptions/LoadOptions.lua @@ -584,7 +584,7 @@ function OptionsPrivate.ConstructOptions(prototype, data, startorder, triggernum return name; end end - return useExactSpellId and L["Invalid Item ID"] or L["Invalid Item Name/ID/Link"]; + return (useExactSpellId and L["Invalid Item ID"] or L["Invalid Item Name/ID/Link"]) .. "\0" else return nil; end @@ -597,12 +597,12 @@ function OptionsPrivate.ConstructOptions(prototype, data, startorder, triggernum if arg.negativeIsEJ and WeakAuras.IsRetail() and spellID < 0 then local tbl = C_EncounterJournal.GetSectionInfo(-spellID) if tbl and tbl.title then - return ("%s (%s)"):format(spellID, tbl.title) + return ("%s (%s)"):format(spellID, tbl.title) .. "\0" .. (trigger[realname] or "") end end local spellName = GetSpellInfo(WeakAuras.SafeToNumber(trigger[realname])) if spellName then - return ("%s (%s)"):format(spellID, spellName) + return ("%s (%s)"):format(spellID, spellName) .. "\0" .. (trigger[realname] or "") end elseif not useExactSpellId then local spellName = GetSpellInfo(trigger[realname]) @@ -614,7 +614,7 @@ function OptionsPrivate.ConstructOptions(prototype, data, startorder, triggernum if arg.noValidation then return trigger[realname] end - return useExactSpellId and L["Invalid Spell ID"] or L["Invalid Spell Name/ID/Link"]; + return (useExactSpellId and L["Invalid Spell ID"] or L["Invalid Spell Name/ID/Link"]) .. "\0" else return nil; end