Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make pasting huge import strings lightning fast #45

Merged
merged 1 commit into from May 27, 2016

Conversation

InfusOnWoW
Copy link
Contributor

Use code provided by Semlar to make pasting a lot faster.
The edit box no longer shows the contents of the pasted text,
but that's not a huge loss.

WeakAuras.ImportString(pasted);
importexportbox:SetLabel(L["Processed %i chars"]:format(i));
importexportbox.editBox:SetMaxBytes(10);
importexportbox.editBox:SetText("Done");
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So Semlar did something different in his code, the truncates the string at 2500 chars and shows those 2500 via a fontstring overlayed. I found that more confussing then helpful, so I did something different.

Use code provided by Semlar to make pasting a lot faster.
The edit box no longer shows the full contents of the pasted text,
but that's not a huge loss.
@Stanzilla Stanzilla merged commit 210db9a into WeakAuras:master May 27, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants