Working to reduce theme changed calls as they will reload all after.

same for on active printer changed
This commit is contained in:
Lars Brubaker 2016-12-08 17:40:04 -08:00
parent 9bb75473ae
commit d23a567307
16 changed files with 5 additions and 73 deletions

View file

@ -133,7 +133,6 @@ namespace MatterHackers.MatterControl
PrinterConnectionAndCommunication.Instance.ActivePrintItemChanged.RegisterEvent(Instance_PrintItemChanged, ref unregisterEvents);
PrinterConnectionAndCommunication.Instance.CommunicationStateChanged.RegisterEvent(Instance_PrintItemChanged, ref unregisterEvents);
ActiveTheme.ThemeChanged.RegisterEvent(ThemeChanged, ref unregisterEvents);
SetThemedColors();
UpdatePrintStatus();