Backport onload event from scene_bundle
This commit is contained in:
parent
208d9b334a
commit
9f01abe653
8 changed files with 44 additions and 75 deletions
|
|
@ -371,16 +371,10 @@ namespace MatterHackers.MatterControl.PrintQueue
|
|||
throw new NotImplementedException();
|
||||
}
|
||||
|
||||
private bool firstDraw = true;
|
||||
|
||||
public override void OnDraw(Graphics2D graphics2D)
|
||||
public override void OnLoad(EventArgs args)
|
||||
{
|
||||
if (firstDraw)
|
||||
{
|
||||
firstDraw = false;
|
||||
EnsureSelection();
|
||||
}
|
||||
base.OnDraw(graphics2D);
|
||||
EnsureSelection();
|
||||
base.OnLoad(args);
|
||||
}
|
||||
|
||||
public override void OnClosed(EventArgs e)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue