- Remove unnecessary code

- Improve startup performance
This commit is contained in:
Stone-Red-Code
2021-09-12 13:24:46 +02:00
parent f94f24297e
commit d70e6229cc
4 changed files with 11 additions and 31 deletions
+3 -4
View File
@@ -636,10 +636,9 @@ namespace DesktopMagic
foreach (char c in chars)
{
textBlock.Text = "";
for (int i = 0; i < 100; i++)
{
textBlock.Text += c.ToString();
}
textBlock.Text += c.ToString();
textBlock.UpdateLayout();
if (charWidth != textBlock.ActualWidth && charWidth != -1)