Run callbacks before close (fixes print recovery test)
This commit is contained in:
parent
a0fad3f693
commit
8d53ba15bd
1 changed files with 2 additions and 2 deletions
|
|
@ -113,11 +113,11 @@ namespace MatterHackers.MatterControl
|
|||
var affirmativeButton = theme.CreateDialogButton(yesOk);
|
||||
affirmativeButton.Click += (s, e) =>
|
||||
{
|
||||
this.DialogWindow.Close();
|
||||
|
||||
// If applicable, invoke the callback
|
||||
responseCallback?.Invoke(true);
|
||||
haveResponded = true;
|
||||
|
||||
this.DialogWindow.Close();
|
||||
};
|
||||
|
||||
this.AddPageAction(affirmativeButton, messageType != MessageType.YES_NO_WITHOUT_HIGHLIGHT);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue