fixing tests

This commit is contained in:
Lars Brubaker 2023-04-07 10:54:04 -07:00
parent a165f08d8a
commit ffc7c8f038
5 changed files with 39 additions and 9 deletions

View file

@ -698,8 +698,10 @@ namespace MatterHackers.MatterControl
reporter?.Invoke(0.91, (loading != null) ? loading : "OnLoadActions");
applicationController.OnLoadActions();
// Wired up to MainView.Load with the intent to fire startup actions and tasks in order with reporting
async void InitialWindowLoad(object s, EventArgs e)
SingleWindowProvider.SetWindowTheme(applicationController.Theme);
// Wired up to MainView.Load with the intent to fire startup actions and tasks in order with reporting
async void InitialWindowLoad(object s, EventArgs e)
{
try
{

View file

@ -228,7 +228,14 @@ namespace MatterHackers.MatterControl
{
if (moveToOpenPosition)
{
PlatingHelper.MoveToOpenPositionRelativeGroup(item, itemsToAvoid);
if (itemsToAvoid.Count() == 0)
{
PlatingHelper.PlaceOnBed(item);
}
else
{
PlatingHelper.MoveToOpenPositionRelativeGroup(item, itemsToAvoid);
}
}
},
addUndoCheckPoint: addUndoCheckPoint));