Skip to content

Commit

Permalink
Bug fix
Browse files Browse the repository at this point in the history
Thread issue. Quick workaround pending a more elegant solution.
  • Loading branch information
philstopford committed Sep 14, 2020
1 parent 6b3baa7 commit a7deb1f
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Common/Variance/UI/UIHandlers_file.cs
Original file line number Diff line number Diff line change
Expand Up @@ -358,7 +358,10 @@ async void geoFileChooser_Handler_exp(object sender, EventArgs e)
{
using (fileLoad_cancelTS.Token.Register(Thread.CurrentThread.Abort))
{
fileOK = layoutLoad(settingsIndex, ofd.FileName);
Application.Instance.Invoke(() =>
{
fileOK = layoutLoad(settingsIndex, ofd.FileName);
});
}
}
catch (ThreadAbortException)
Expand Down

0 comments on commit a7deb1f

Please sign in to comment.