Skip to content

Commit

Permalink
Fixes #489 by preventing backstage hide on application shutdown
Browse files Browse the repository at this point in the history
  • Loading branch information
batzen committed Jan 9, 2018
1 parent de187b6 commit 3fd9991
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions Fluent.Ribbon/Controls/Backstage.cs
Original file line number Diff line number Diff line change
Expand Up @@ -514,6 +514,13 @@ private void OnDelayedShow(object sender, EventArgs args)
/// </summary>
protected virtual void Hide()
{
// potentially fixes https://github.com/fluentribbon/Fluent.Ribbon/issues/489
if (this.Dispatcher.HasShutdownStarted
|| this.Dispatcher.HasShutdownFinished)
{
return;
}

this.Loaded -= this.OnDelayedShow;

if (this.Content == null)
Expand Down

0 comments on commit 3fd9991

Please sign in to comment.