mirror of
https://github.com/brues-code/pfUI.git
synced 2026-10-18 02:30:50 +00:00
Allow whitespace-only macro names
strtrim collapsed a name like " " to "" and the empty guard then rejected the save, but a whitespace-only name is valid in vanilla and a common way to make a name-less macro. Save the raw text and only reject a truly empty box.
This commit is contained in:
@@ -72,7 +72,7 @@ pfUI:RegisterModule("macroicons", function ()
|
|||||||
end
|
end
|
||||||
|
|
||||||
local function SaveMacroPopup()
|
local function SaveMacroPopup()
|
||||||
local text = strtrim(picker.editbox:GetText())
|
local text = picker.editbox:GetText()
|
||||||
if text == "" then return end
|
if text == "" then return end
|
||||||
|
|
||||||
local icon = iconPicker.GetIcon()
|
local icon = iconPicker.GetIcon()
|
||||||
|
|||||||
Reference in New Issue
Block a user