Suppress ClosePage behavior if close aborted
This commit is contained in:
parent
f2bf0c5005
commit
7bce7dff9b
1 changed files with 7 additions and 0 deletions
|
|
@ -237,6 +237,13 @@ namespace MatterHackers.MatterControl
|
|||
|
||||
public override void ClosePage()
|
||||
{
|
||||
this.OnCancel(out bool abortClose);
|
||||
|
||||
if (abortClose)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
if (this.ActiveStage == null
|
||||
|| this.ActiveStage?.ClosePage() == true)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue