update Export

This commit is contained in:
Crum
2018-01-05 10:13:29 -06:00
parent e46bf17147
commit 6cba6bafba
+6 -3
View File
@@ -282,9 +282,12 @@ local function ExportImport_Open(mode)
frame:AddChild(exportButton) frame:AddChild(exportButton)
box.editBox:SetScript("OnChar", function() box:SetText(exportString) box.editBox:HighlightText() end) box.editBox:SetScript("OnChar", function() box:SetText(exportString) box.editBox:HighlightText() end)
box.editBox:SetScript("OnTextChanged", function(self) box.editBox:SetScript("OnTextChanged", function()
box:SetText(exportString) if this then
box.editBox:HighlightText() box:SetText(exportString)
box.editBox:HighlightText()
end
box.scrollFrame:UpdateScrollChildRect()
end) end)
elseif(mode == "import") then elseif(mode == "import") then
frame:SetTitle(L["Import Profile"]) frame:SetTitle(L["Import Profile"])