improving closing logic
This commit is contained in:
parent
6bc5c444dc
commit
da8420bb5e
3 changed files with 4 additions and 4 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue