Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/monodevelop.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortherzok <marius.ungureanu@xamarin.com>2019-09-13 19:55:14 +0300
committertherzok <marius.ungureanu@xamarin.com>2019-09-13 19:55:14 +0300
commit9027de347fc775f4018759e9bb9cdcbae1ea977f (patch)
tree1d904e5d6d5af36037d20b9588f2aebea437d5f0 /main/src/core/MonoDevelop.Core
parent244d0878246eee073e1486cfdfd45d887070187e (diff)
[Project] Avoid running msbuild globbing code on the UI thread
Diffstat (limited to 'main/src/core/MonoDevelop.Core')
-rw-r--r--main/src/core/MonoDevelop.Core/MonoDevelop.Projects/Project.cs9
1 files changed, 4 insertions, 5 deletions
diff --git a/main/src/core/MonoDevelop.Core/MonoDevelop.Projects/Project.cs b/main/src/core/MonoDevelop.Core/MonoDevelop.Projects/Project.cs
index 51cc5d14c9..286875f375 100644
--- a/main/src/core/MonoDevelop.Core/MonoDevelop.Projects/Project.cs
+++ b/main/src/core/MonoDevelop.Core/MonoDevelop.Projects/Project.cs
@@ -4519,11 +4519,10 @@ namespace MonoDevelop.Projects
bool exists = File.Exists (sourceFile) || Directory.Exists (sourceFile);
- Runtime.RunInMainThread (() => {
- OnFileCreatedExternally (targetFile);
- if (!exists)
- OnFileDeletedExternally (sourceFile);
- });
+ OnFileCreatedExternally (targetFile);
+ if (!exists) {
+ Runtime.RunInMainThread (() => OnFileDeletedExternally (sourceFile));
+ }
}
internal virtual void OnFileCreated (FilePath filePath)