Added SetInterval to uithread

Make sure we don't show time to turn of temps if already off
Make sure tumble cube is build before putting textures on it
This commit is contained in:
Lars Brubaker 2018-03-20 18:25:40 -07:00
parent bd9f985c3a
commit 9139345012
13 changed files with 64 additions and 110 deletions

View file

@ -79,7 +79,7 @@ namespace MatterHackers.MatterControl.CustomWidgets
VAnchor = VAnchor.Fit;
HAnchor = HAnchor.Fit;
UiThread.RunOnIdle(CheckControlsVisibility, .1);
UiThread.SetInterval(CheckControlsVisibility, .1, () => !HasBeenClosed);
}
public event EventHandler EditComplete;
@ -203,8 +203,6 @@ namespace MatterHackers.MatterControl.CustomWidgets
// If the user is hovering on a different control
Visible = false;
}
UiThread.RunOnIdle(CheckControlsVisibility, .1);
}
}
}