Merge pull request #1563 from jlewin/1.6.0
Revise SystemWindow Close/Open calls to fix out of order SysWindow stack
This commit is contained in:
commit
5ae882a671
1 changed files with 11 additions and 4 deletions
|
|
@ -78,21 +78,28 @@ namespace MatterHackers.MatterControl.PrinterControls.PrinterConnections
|
|||
UiThread.RunOnIdle(WizardWindow.Close);
|
||||
}
|
||||
};
|
||||
|
||||
var createAccountButton = textImageButtonFactory.Generate("Create Account".Localize());
|
||||
createAccountButton.Name = "Create Account From Connection Wizard Button";
|
||||
createAccountButton.Margin = new Agg.BorderDouble(right: 5);
|
||||
createAccountButton.Click += (s, e) =>
|
||||
{
|
||||
WizardWindow.ChangeToAccountCreate();
|
||||
UiThread.RunOnIdle(WizardWindow.Close);
|
||||
UiThread.RunOnIdle (() =>
|
||||
{
|
||||
WizardWindow.Close();
|
||||
WizardWindow.ChangeToAccountCreate();
|
||||
});
|
||||
};
|
||||
|
||||
var signInButton = textImageButtonFactory.Generate("Sign In".Localize());
|
||||
signInButton.Name = "Sign In From Connection Wizard Button";
|
||||
signInButton.Click += (s, e) =>
|
||||
{
|
||||
WizardWindow.ShowAuthDialog?.Invoke();
|
||||
UiThread.RunOnIdle(WizardWindow.Close);
|
||||
UiThread.RunOnIdle (() =>
|
||||
{
|
||||
WizardWindow.Close();
|
||||
WizardWindow.ShowAuthDialog?.Invoke();
|
||||
});
|
||||
};
|
||||
|
||||
footerRow.AddChild(skipButton);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue