ReloadAll should not rebuild workspaces

- Issue MatterHackers/MCCentral#4704
This commit is contained in:
John Lewin 2018-12-19 15:05:25 -08:00
parent 6a677cd889
commit 801363fe49
3 changed files with 43 additions and 5 deletions

View file

@ -194,6 +194,22 @@ namespace MatterHackers.MatterControl.PartPreviewWindow
tabControl.TabBar.ActionArea.AddChild(brandMenu, 0);
// Restore active workspace tabs
foreach (var workspace in ApplicationController.Instance.Workspaces)
{
// Create and switch to new printer tab
if (workspace.Printer?.Settings.PrinterSelected == true)
{
tabControl.ActiveTab = this.CreatePrinterTab(workspace, theme);
}
else
{
tabControl.ActiveTab = this.CreatePartTab(workspace);
}
tabControl.RefreshTabPointers();
}
tabControl.SelectedTabKey = tabKey;
statusBar = new Toolbar(theme)