Prevent duplicate tab creation
- Issue - Issue MatterHackers/MCCentral#4297 Excess tabs on ReloadAll
This commit is contained in:
parent
761dc3c003
commit
6b0a3bf063
1 changed files with 4 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue