Making the windows understand their closed states better.
Made print history have a data and a view
This commit is contained in:
parent
9679512a7b
commit
c4a6a9960a
9 changed files with 146 additions and 86 deletions
|
|
@ -166,10 +166,15 @@ namespace MatterHackers.MatterControl
|
|||
HelpTextWidget.Instance.HideHoverText();
|
||||
}
|
||||
|
||||
public override void OnClosed(EventArgs e)
|
||||
public override void OnClosing(out bool cancelClose)
|
||||
{
|
||||
lastPanelIndexOnClose = PanelIndex;
|
||||
lastAdvanceControlsIndex = advancedControlsTabControl.SelectedTabIndex;
|
||||
base.OnClosing(out cancelClose);
|
||||
}
|
||||
|
||||
public override void OnClosed(EventArgs e)
|
||||
{
|
||||
if (unregisterEvents != null)
|
||||
{
|
||||
unregisterEvents(this, null);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue