mirror of
https://github.com/brues-code/pfUI.git
synced 2026-09-21 23:26:56 +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
|
||||
|
||||
local function SaveMacroPopup()
|
||||
local text = strtrim(picker.editbox:GetText())
|
||||
local text = picker.editbox:GetText()
|
||||
if text == "" then return end
|
||||
|
||||
local icon = iconPicker.GetIcon()
|
||||
|
||||
Reference in New Issue
Block a user