Disable redundant "Rename Printer" menu item

This commit is contained in:
John Lewin 2018-01-23 12:36:01 -08:00
parent e1fd908628
commit 57072df8d5

View file

@ -171,27 +171,27 @@ namespace MatterHackers.MatterControl.PartPreviewWindow
Title = "Configure EEProm".Localize(),
Action = configureEePromButton_Click
},
new NamedAction()
{
Title = "Rename Printer".Localize(),
Action = () =>
{
DialogWindow.Show(
new InputBoxPage(
"Rename Printer".Localize(),
"Name".Localize(),
printer.Settings.GetValue(SettingsKey.printer_name),
"Enter New Name Here".Localize(),
"Rename".Localize(),
(newName) =>
{
if (!string.IsNullOrEmpty(newName))
{
printer.Settings.SetValue(SettingsKey.printer_name, newName);
}
}));
}
},
//new NamedAction()
//{
// Title = "Rename Printer".Localize(),
// Action = () =>
// {
// DialogWindow.Show(
// new InputBoxPage(
// "Rename Printer".Localize(),
// "Name".Localize(),
// printer.Settings.GetValue(SettingsKey.printer_name),
// "Enter New Name Here".Localize(),
// "Rename".Localize(),
// (newName) =>
// {
// if (!string.IsNullOrEmpty(newName))
// {
// printer.Settings.SetValue(SettingsKey.printer_name, newName);
// }
// }));
// }
//},
new NamedBoolAction()
{
Title = "Configure Printer".Localize(),