mirror of
https://github.com/kwsch/PKHeX
synced 2024-11-27 22:40:22 +00:00
Speed up form translation
defer layout until after translation
This commit is contained in:
parent
da1f7c7426
commit
1dd4919adc
1 changed files with 2 additions and 0 deletions
|
@ -55,6 +55,7 @@ namespace PKHeX
|
|||
return;
|
||||
|
||||
// Find control then change display Text.
|
||||
form.SuspendLayout();
|
||||
foreach (string str in stringdata)
|
||||
{
|
||||
string[] SplitString = str.Split(new[] { " = " }, StringSplitOptions.None);
|
||||
|
@ -72,6 +73,7 @@ namespace PKHeX
|
|||
else if (c is ToolStripItem)
|
||||
(c as ToolStripItem).Text = text;
|
||||
}
|
||||
form.ResumeLayout();
|
||||
}
|
||||
private static object FindControl(string name, Control.ControlCollection c)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue