Properly refresh the document when the last window is closed
This commit is contained in:
parent
36c635f540
commit
fde515b6b7
@ -1672,7 +1672,16 @@ namespace UniversalEditor.UserInterface.WindowsForms
|
||||
}
|
||||
}
|
||||
private void dcc_WindowClosed(object sender, WindowClosedEventArgs e)
|
||||
{
|
||||
{
|
||||
if (dcc.SelectedWindow == null)
|
||||
{
|
||||
mvarCurrentDocument = null;
|
||||
RefreshDocument();
|
||||
return;
|
||||
}
|
||||
if (dcc.SelectedWindow.ParentArea == null) return;
|
||||
if (dcc.SelectedWindow.ParentArea.Position != DockPosition.Center) return;
|
||||
|
||||
RefreshDocument();
|
||||
}
|
||||
#endregion
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user