from retail

This commit is contained in:
NoM0Re
2025-01-25 17:46:46 +01:00
parent 1152abe6a5
commit 87c1e2fbaf
7 changed files with 54 additions and 77 deletions
+10 -4
View File
@@ -605,9 +605,15 @@ local function ConstructTextEditor(frame)
helpButton:Hide()
end
if (frame.window == "texture") then
frame.texturePicker:CancelClose()
local texturepicker = OptionsPrivate.TexturePicker(frame, true)
if texturepicker then
texturepicker:CancelClose()
end
elseif (frame.window == "icon") then
frame.iconPicker:CancelClose()
local iconpicker = OptionsPrivate.IconPicker(frame, true)
if iconpicker then
iconpicker:CancelClose()
end
end
frame.window = "texteditor"
frame:UpdateFrameVisible()
@@ -774,7 +780,7 @@ local function ConstructTextEditor(frame)
return group
end
function OptionsPrivate.TextEditor(frame)
textEditor = textEditor or ConstructTextEditor(frame)
function OptionsPrivate.TextEditor(frame, noConstruct)
textEditor = textEditor or (not noConstruct and ConstructTextEditor(frame))
return textEditor
end