Skip to content

Commit

Permalink
Merge pull request #596 from markgould/master
Browse files Browse the repository at this point in the history
Fixes InvalidOperationException in WindowManager
  • Loading branch information
nigel-sampson authored Apr 6, 2019
2 parents 772ed0b + 3e443b4 commit 1416e4a
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions src/Caliburn.Micro.Platform/Platforms/net46/WindowManager.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
using System;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
Expand Down Expand Up @@ -417,9 +417,14 @@ private async void Closing(object sender, CancelEventArgs e)
if (view.DialogResult != cachedDialogResult)
{
view.DialogResult = cachedDialogResult;
view.Close();
}
else
{
e.Cancel = false;
}


view.Close();
}
}
}
Expand Down

0 comments on commit 1416e4a

Please sign in to comment.