ReloadAll should not rebuild workspaces
- Issue MatterHackers/MCCentral#4704
This commit is contained in:
parent
6a677cd889
commit
801363fe49
3 changed files with 43 additions and 5 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue