Remove "Show Help" from SliceSettings
- Issue MatterHackers/MCCentral#3039
This commit is contained in:
parent
19223b9dd2
commit
ca8efa54b2
3 changed files with 0 additions and 46 deletions
|
|
@ -596,16 +596,6 @@ namespace MatterHackers.MatterControl
|
|||
|
||||
public event EventHandler ShowHelpChanged;
|
||||
|
||||
public bool ShowHelpControls
|
||||
{
|
||||
get => UserSettings.Instance.get(UserSettingsKey.SliceSettingsShowHelp) == "true";
|
||||
set
|
||||
{
|
||||
UserSettings.Instance.set(UserSettingsKey.SliceSettingsShowHelp, value.ToString().ToLower());
|
||||
ShowHelpChanged?.Invoke(null, null);
|
||||
}
|
||||
}
|
||||
|
||||
public LibraryConfig Library { get; }
|
||||
|
||||
public GraphConfig Graph { get; }
|
||||
|
|
|
|||
|
|
@ -13,7 +13,6 @@ namespace MatterHackers.MatterControl
|
|||
public const string ThumbnailRenderingMode = nameof(ThumbnailRenderingMode);
|
||||
public const string CredentialsInvalid = nameof(CredentialsInvalid);
|
||||
public const string CredentialsInvalidReason = nameof(CredentialsInvalidReason);
|
||||
public const string SliceSettingsShowHelp = nameof(SliceSettingsShowHelp);
|
||||
public const string TerminalFilterOutput = nameof(TerminalFilterOutput);
|
||||
public const string TerminalAutoUppercase = nameof(TerminalAutoUppercase);
|
||||
public const string SliceSettingsTabPinned = nameof(SliceSettingsTabPinned);
|
||||
|
|
|
|||
|
|
@ -455,13 +455,6 @@ namespace MatterHackers.MatterControl.SlicerConfiguration
|
|||
this.ForceExpansionMode(ExpansionMode.Collapsed);
|
||||
};
|
||||
|
||||
popupMenu.CreateHorizontalLine();
|
||||
|
||||
popupMenu.CreateBoolMenuItem(
|
||||
"Show Help".Localize(),
|
||||
() => ApplicationController.Instance.ShowHelpControls,
|
||||
(value) => ApplicationController.Instance.ShowHelpControls = value);
|
||||
|
||||
externalExtendMenu?.Invoke(popupMenu);
|
||||
}
|
||||
|
||||
|
|
@ -533,11 +526,6 @@ namespace MatterHackers.MatterControl.SlicerConfiguration
|
|||
this.settingsRows.Add((settingsRow, settingData));
|
||||
|
||||
topToBottomSettings.AddChild(settingsRow);
|
||||
|
||||
if (ApplicationController.Instance.ShowHelpControls)
|
||||
{
|
||||
topToBottomSettings.AddChild(AddInHelpText(topToBottomSettings, settingData));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -560,29 +548,6 @@ namespace MatterHackers.MatterControl.SlicerConfiguration
|
|||
return settingShouldBeShown;
|
||||
}
|
||||
|
||||
private static GuiWidget AddInHelpText(FlowLayoutWidget topToBottomSettings, SliceSettingData settingData)
|
||||
{
|
||||
double textRegionWidth = 380 * GuiWidget.DeviceScale;
|
||||
double helpPointSize = 10;
|
||||
|
||||
var allText = new FlowLayoutWidget(FlowDirection.TopToBottom)
|
||||
{
|
||||
HAnchor = HAnchor.Stretch,
|
||||
Margin = new BorderDouble(0),
|
||||
Padding = new BorderDouble(5),
|
||||
};
|
||||
|
||||
allText.AddChild(
|
||||
new WrappedTextWidget(settingData.HelpText, pointSize: helpPointSize, textColor: Color.White)
|
||||
{
|
||||
Width = textRegionWidth,
|
||||
Margin = new BorderDouble(5, 0, 0, 0)
|
||||
});
|
||||
|
||||
allText.MinimumSize = new Vector2(0, allText.MinimumSize.Y);
|
||||
return allText;
|
||||
}
|
||||
|
||||
// Creates an information row showing the base OEM profile and its create_date value
|
||||
public GuiWidget CreateOemProfileInfoRow()
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue