Revise blink tab on Add to Bed
This commit is contained in:
parent
e345aec1c1
commit
cb5a86e2a3
2 changed files with 11 additions and 9 deletions
|
|
@ -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) =>
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue