Making auto probing cancel correctly when canceled

issue: MatterHackers/MCCentral#4831
Cancelling Bed Leveling causes erratic behavior
This commit is contained in:
Lars Brubaker 2019-01-15 16:31:12 -08:00 committed by LarsBrubaker
parent 20e173110a
commit a0c93ec476
4 changed files with 45 additions and 25 deletions

View file

@ -64,11 +64,12 @@ namespace MatterHackers.MatterControl
pages.Current?.Close();
// Advance
pages.MoveNext();
if (pages.MoveNext())
{
pages.Current?.PageIsBecomingActive();
pages.Current?.PageIsBecomingActive();
dialogWindow.ChangeToPage(pages.Current);
dialogWindow.ChangeToPage(pages.Current);
}
});
}
}