Refactored PrinterActionRow

made show_reset_connection a SettingsKey
Made the show_reset_connection less expensive to change
This commit is contained in:
Lars Brubaker 2016-07-26 09:30:12 -07:00
parent f366736a46
commit a3c0cdcea5
5 changed files with 99 additions and 95 deletions

View file

@ -362,7 +362,7 @@ namespace MatterHackers.MatterControl.ActionBar
}
if (PrinterConnectionAndCommunication.Instance.PrinterIsConnected
&& ActiveSliceSettings.Instance.GetValue<bool>("show_reset_connection")
&& ActiveSliceSettings.Instance.GetValue<bool>(SettingsKey.show_reset_connection)
&& UserSettings.Instance.IsTouchScreen)
{
this.activePrintButtons.Add(resetConnectionButton);