Revise blink tab on Add to Bed

This commit is contained in:
John Lewin 2018-10-22 14:15:29 -07:00
parent e345aec1c1
commit cb5a86e2a3
2 changed files with 11 additions and 9 deletions

View file

@ -734,15 +734,8 @@ namespace MatterHackers.MatterControl.PrintLibrary
activeContext.SceneContext.AddToPlate(selectedLibraryItems);
}
#if DEBUG
// TODO: need to select the right tab to flash
var tabControl = ApplicationController.Instance.AppView.TabControl;
var tab = tabControl.AllTabs.LastOrDefault();
if (tab is GuiWidget guiWidget)
{
guiWidget.Descendants<TextWidget>().FirstOrDefault().FlashBackground(theme.Colors.PrimaryAccentColor.WithContrast(theme.Colors.PrimaryTextColor, 6).ToColor());
}
#endif
ApplicationController.Instance.BlinkTab(
ApplicationController.Instance.AppView.TabControl.AllTabs.FirstOrDefault(t => t.TabContent is PrinterTabPage));
},
IsEnabled = (selectedListItems, listView) =>
{