Skip to content

Commit

Permalink
Merge pull request #51 from scdmitryvodich/FixInternalCloseFlag
Browse files Browse the repository at this point in the history
Fix reopening of Floating windows after they were closed from Unload …
  • Loading branch information
Dirkster99 authored Jul 17, 2019
2 parents ded9832 + 5ee0334 commit 1615119
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -403,9 +403,9 @@ protected virtual IntPtr FilterMessage( IntPtr hwnd, int msg, IntPtr wParam, Int
return IntPtr.Zero;
}

internal void InternalClose()
internal void InternalClose(bool closeInitiatedByUser = false)
{
_internalCloseFlag = true;
_internalCloseFlag = !closeInitiatedByUser;
if( !_isClosing )
{
_isClosing = true;
Expand Down
2 changes: 1 addition & 1 deletion source/Components/Xceed.Wpf.AvalonDock/DockingManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2425,7 +2425,7 @@ private void DockingManager_Unloaded( object sender, RoutedEventArgs e )
fw.SetParentWindowToNull();
fw.KeepContentVisibleOnClose = true;
// To avoid calling Close method multiple times.
fw.InternalClose();
fw.InternalClose(true);
}
_fwList.Clear();

Expand Down

0 comments on commit 1615119

Please sign in to comment.