make sure we find every island while optimizing
issue; MatterHackers/MCCentral#6095 Parts of slice are missing
This commit is contained in:
parent
cf97d61c04
commit
0cf6df9bfd
2 changed files with 6 additions and 2 deletions
|
|
@ -43,7 +43,9 @@ namespace MatterHackers.MatterControl.PartPreviewWindow
|
|||
public interface ITab
|
||||
{
|
||||
GuiWidget TabContent { get; }
|
||||
|
||||
string Key { get; }
|
||||
|
||||
string Text { get; }
|
||||
}
|
||||
|
||||
|
|
@ -84,6 +86,7 @@ namespace MatterHackers.MatterControl.PartPreviewWindow
|
|||
public event EventHandler ActiveTabChanged;
|
||||
|
||||
private List<ITab> _allTabs = new List<ITab>();
|
||||
|
||||
public IEnumerable<ITab> AllTabs => _allTabs;
|
||||
|
||||
public int TabCount => _allTabs.Count;
|
||||
|
|
@ -180,6 +183,7 @@ namespace MatterHackers.MatterControl.PartPreviewWindow
|
|||
}
|
||||
|
||||
private ITab _activeTab;
|
||||
|
||||
public ITab ActiveTab
|
||||
{
|
||||
get => _activeTab;
|
||||
|
|
@ -193,7 +197,7 @@ namespace MatterHackers.MatterControl.PartPreviewWindow
|
|||
|
||||
foreach (var tab in _allTabs)
|
||||
{
|
||||
tab.TabContent.Visible = (tab == clickedWidget);
|
||||
tab.TabContent.Visible = tab == clickedWidget;
|
||||
}
|
||||
|
||||
this.OnActiveTabChanged();
|
||||
|
|
|
|||
|
|
@ -1 +1 @@
|
|||
Subproject commit 2740b3db72d63a6ee8561485ed05c14dc310d4a5
|
||||
Subproject commit 403b8cb694d9c5fc0eaf4ace5022bd8d910165d7
|
||||
Loading…
Add table
Add a link
Reference in a new issue