Remove unnecessary closure

This commit is contained in:
John Lewin 2018-11-15 14:45:35 -08:00
parent 8b9f455b43
commit 7148be8c25
2 changed files with 3 additions and 3 deletions

View file

@ -51,7 +51,7 @@ namespace MatterHackers.MatterControl.PartPreviewWindow
: base(theme)
{
this.sceneContext = sceneContext;
this.PopupContent = () => ShowViewOptions(sceneContext, theme);
this.PopupContent = ShowViewOptions;
this.HAnchor = HAnchor.Fit;
this.VAnchor = VAnchor.Fit;
@ -92,7 +92,7 @@ namespace MatterHackers.MatterControl.PartPreviewWindow
}
}
private GuiWidget ShowViewOptions(BedConfig sceneContext, ThemeConfig theme)
private GuiWidget ShowViewOptions()
{
var popupMenu = new PopupMenu(ApplicationController.Instance.MenuTheme);