improving closing logic
This commit is contained in:
parent
6bc5c444dc
commit
da8420bb5e
3 changed files with 4 additions and 4 deletions
|
|
@ -200,7 +200,7 @@ namespace MatterHackers.MatterControl
|
|||
// msGraph.Draw(MatterHackers.Agg.Transform.Affine.NewIdentity(), graphics2D);
|
||||
}
|
||||
|
||||
public override void OnClosing(ClosingEventArgs eventArgs)
|
||||
public override void OnShouldClose(ShouldCloseEventArgs eventArgs)
|
||||
{
|
||||
if (this.HasBeenClosed)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -159,7 +159,7 @@ namespace MatterHackers.MatterControl
|
|||
}
|
||||
}
|
||||
|
||||
public override void OnClosing(ClosingEventArgs eventArgs)
|
||||
public override void OnShouldClose(ShouldCloseEventArgs eventArgs)
|
||||
{
|
||||
if (this.ActiveStage != null
|
||||
&& !closeConfirmed)
|
||||
|
|
@ -174,7 +174,7 @@ namespace MatterHackers.MatterControl
|
|||
});
|
||||
}
|
||||
|
||||
base.OnClosing(eventArgs);
|
||||
base.OnShouldClose(eventArgs);
|
||||
}
|
||||
|
||||
private void ConditionalAbort(string message, Action exitConfirmedAction)
|
||||
|
|
|
|||
|
|
@ -1 +1 @@
|
|||
Subproject commit bd8fded90fb758b6b80817cf2e966ee2f058e5ac
|
||||
Subproject commit 5ea0c5dcc6ec4d87de9474f70bca3a7afe275f96
|
||||
Loading…
Add table
Add a link
Reference in a new issue