New tabs should open to the far right
- Issue MatterHackers/MCCentral#4693 Added printer/part tabs should be at position count + 1
This commit is contained in:
parent
eaf4e7fd0e
commit
5afdfdb989
1 changed files with 2 additions and 11 deletions
|
|
@ -549,15 +549,8 @@ namespace MatterHackers.MatterControl.PartPreviewWindow
|
|||
// Unregister listener on Tab close
|
||||
printerTab.Closed += (s, e) => printer.Settings.SettingChanged -= Printer_SettingChanged;
|
||||
|
||||
// Add printer into fixed position
|
||||
if (tabControl.AllTabs.Any())
|
||||
{
|
||||
tabControl.AddTab(printerTab, 3);
|
||||
}
|
||||
else
|
||||
{
|
||||
tabControl.AddTab(printerTab);
|
||||
}
|
||||
// Add printer tab
|
||||
tabControl.AddTab(printerTab);
|
||||
|
||||
return printerTab;
|
||||
}
|
||||
|
|
@ -579,8 +572,6 @@ namespace MatterHackers.MatterControl.PartPreviewWindow
|
|||
Name = "New Design".Localize() + (partCount == 0 ? "" : $" ({partCount})"),
|
||||
};
|
||||
|
||||
partCount++;
|
||||
|
||||
await workspace.SceneContext.LoadContent(
|
||||
new EditContext()
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue