mirror of
https://github.com/kwsch/PKHeX.git
synced 2026-10-01 19:16:48 -05:00
Speed up form translation
defer layout until after translation
This commit is contained in:
@@ -55,6 +55,7 @@ internal static void TranslateInterface(Control form, string lang)
|
||||
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 @@ internal static void TranslateInterface(Control form, string lang)
|
||||
else if (c is ToolStripItem)
|
||||
(c as ToolStripItem).Text = text;
|
||||
}
|
||||
form.ResumeLayout();
|
||||
}
|
||||
private static object FindControl(string name, Control.ControlCollection c)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user