Restore Clear Cache functionality

- Remove buttonRowContainer blocking mouse input to html content
 - Fixes #104208890 - Help>About>Clear Cache no longer works
This commit is contained in:
John Lewin 2016-01-10 17:29:23 -08:00
parent a310e16864
commit 366ea3bca3
2 changed files with 5 additions and 10 deletions

View file

@ -57,15 +57,10 @@ namespace MatterHackers.MatterControl
aboutPage.AnchorAll();
this.AddChild(aboutPage);
FlowLayoutWidget buttonRowContainer = new FlowLayoutWidget();
buttonRowContainer.HAnchor = HAnchor.ParentLeftRight;
buttonRowContainer.Padding = new BorderDouble(0, 3);
AddChild(buttonRowContainer);
Button cancelButton = textImageButtonFactory.Generate("Close");
cancelButton.Click += (sender, e) => { CancelButton_Click(); };
buttonRowContainer.AddChild(new HorizontalSpacer());
buttonRowContainer.AddChild(cancelButton);
cancelButton.Click += (s, e) => CancelButton_Click();
cancelButton.HAnchor = HAnchor.ParentRight;
this.AddChild(cancelButton);
this.Title = LocalizedString.Get("About MatterControl");
this.AlwaysOnTopOfMain = true;

View file

@ -244,11 +244,11 @@ namespace MatterHackers.MatterControl
{
if (elementState.Id == "sendFeedback")
{
createdButton.Click += (sender, mouseEvent) => { ContactFormWindow.Open(); };
createdButton.Click += (s, e) => ContactFormWindow.Open();
}
else if (elementState.Id == "clearCache")
{
createdButton.Click += (sender, mouseEvent) => { AboutWidget.DeleteCacheData(); };
createdButton.Click += (s, e) => AboutWidget.DeleteCacheData();
}
}