improving closing logic

This commit is contained in:
Lars Brubaker 2022-12-05 10:46:49 -08:00
parent 6bc5c444dc
commit da8420bb5e
3 changed files with 4 additions and 4 deletions

View file

@ -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)