Skip to content

Commit 0c1fce9

Browse files
author
tznind
committed
Fix bad performance of OpenDialog caused by explicit call to Layout
1 parent b07eb54 commit 0c1fce9

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

src/UI/Editor.cs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1270,10 +1270,9 @@ private void Open()
12701270
var ofd = new OpenDialog()
12711271
{
12721272
Title = "Open",
1273-
// AllowedTypes = new List<IAllowedType>(new[] { new AllowedType("View", SourceCodeFile.ExpectedExtension) })
1273+
AllowedTypes = new List<IAllowedType>(new[] { new AllowedType("View", SourceCodeFile.ExpectedExtension) })
12741274
};
1275-
ofd.Layout();
1276-
1275+
12771276
app.Run(ofd, this.ErrorHandler);
12781277

12791278
if (!ofd.Canceled)

0 commit comments

Comments
 (0)