Skip to content

Commit fdaef70

Browse files
committed
Properly handle dispose UI context.
This is a hack, we need to fix mono#4751
1 parent 9769120 commit fdaef70

File tree

1 file changed

+2
-1
lines changed
  • main/src/addins/VersionControl/MonoDevelop.VersionControl/MonoDevelop.VersionControl

1 file changed

+2
-1
lines changed

main/src/addins/VersionControl/MonoDevelop.VersionControl/MonoDevelop.VersionControl/VersionControlTask.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,8 @@ void BackgroundWorker ()
7070
public void Wakeup() {
7171
try {
7272
tracker.EndTask();
73-
tracker.Dispose();
73+
// Remove this when https://github.com/mono/monodevelop/issue/4751 is fixed.
74+
Runtime.MainSynchronizationContext.Post (o => ((ProgressMonitor)o).Dispose (), tracker);
7475
} finally {
7576
Finished();
7677
}

0 commit comments

Comments
 (0)