Prevent duplicate tab creation

- Issue - Issue MatterHackers/MCCentral#4297
Excess tabs on ReloadAll
This commit is contained in:
John Lewin 2018-10-16 16:29:37 -07:00
parent 761dc3c003
commit 6b0a3bf063

View file

@ -269,7 +269,10 @@ namespace MatterHackers.MatterControl.PartPreviewWindow
}
else
{
this.CreatePartTab().ConfigureAwait(false);
if (ApplicationController.Instance.Workspaces.Count == 0)
{
this.CreatePartTab().ConfigureAwait(false);
}
}
string tabKey = ApplicationController.Instance.MainTabKey;