Fixed bug where closing a non-active document blanked the tool windows for the current document
This commit is contained in:
parent
e3505b3575
commit
29ed02e172
|
@ -131,7 +131,7 @@ namespace Filtration.ViewModels
|
||||||
throw new ArgumentException("CloseDocument called with non-existant document");
|
throw new ArgumentException("CloseDocument called with non-existant document");
|
||||||
}
|
}
|
||||||
|
|
||||||
if (document.IsScript)
|
if (document.IsScript && ActiveDocument == document)
|
||||||
{
|
{
|
||||||
_sectionBrowserViewModel.ClearDown();
|
_sectionBrowserViewModel.ClearDown();
|
||||||
_blockGroupBrowserViewModel.ClearDown();
|
_blockGroupBrowserViewModel.ClearDown();
|
||||||
|
|
Loading…
Reference in New Issue