Remove non-applicable code
This commit is contained in:
parent
c5e92c8cb6
commit
e1700dadcd
1 changed files with 0 additions and 25 deletions
|
|
@ -104,9 +104,6 @@ namespace MatterHackers.MatterControl.SlicerConfiguration
|
|||
|
||||
pageTopToBottomLayout.AddChild(settingsControlBar);
|
||||
|
||||
printerConnection.CommunicationStateChanged.RegisterEvent(onPrinterStatusChanged, ref unregisterEvents);
|
||||
printerConnection.EnableChanged.RegisterEvent(onPrinterStatusChanged, ref unregisterEvents);
|
||||
|
||||
RebuildSliceSettingsTabs();
|
||||
|
||||
ActiveSliceSettings.SettingChanged.RegisterEvent(
|
||||
|
|
@ -216,8 +213,6 @@ namespace MatterHackers.MatterControl.SlicerConfiguration
|
|||
|
||||
pageTopToBottomLayout.AddChild(topCategoryTabs);
|
||||
|
||||
SetVisibleControls();
|
||||
|
||||
// Make sure we are on the right tab when we create this view
|
||||
{
|
||||
string settingsName = "SliceSettingsWidget_CurrentTab";
|
||||
|
|
@ -277,26 +272,6 @@ namespace MatterHackers.MatterControl.SlicerConfiguration
|
|||
base.OnClosed(e);
|
||||
}
|
||||
|
||||
private void onPrinterStatusChanged(object sender, EventArgs e)
|
||||
{
|
||||
SetVisibleControls();
|
||||
this.Invalidate();
|
||||
}
|
||||
|
||||
private void SetVisibleControls()
|
||||
{
|
||||
if (ActiveSliceSettings.Instance.PrinterSelected)
|
||||
{
|
||||
topCategoryTabs.Visible = true;
|
||||
settingsControlBar.Visible = showControlBar;
|
||||
}
|
||||
else
|
||||
{
|
||||
topCategoryTabs.Visible = false;
|
||||
settingsControlBar.Visible = showControlBar;
|
||||
}
|
||||
}
|
||||
|
||||
private int tabIndexForItem = 0;
|
||||
|
||||
// Cache show help at construction time - rebuild SliceSettingsWidget on value changed
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue