diff --git a/MatterControlLib/ApplicationView/ApplicationController.cs b/MatterControlLib/ApplicationView/ApplicationController.cs index cdf06e3e3..8b4726e15 100644 --- a/MatterControlLib/ApplicationView/ApplicationController.cs +++ b/MatterControlLib/ApplicationView/ApplicationController.cs @@ -361,9 +361,6 @@ namespace MatterHackers.MatterControl public event EventHandler OpenPrintersChanged; - public static Action SignInAction; - public static Action SignOutAction; - public static Action WebRequestFailed; public static Action WebRequestSucceeded; @@ -1745,8 +1742,6 @@ namespace MatterHackers.MatterControl ProfileManager.Instance.EnsurePrintersImported(); } - private EventHandler unregisterEvent; - public Stream LoadHttpAsset(string url) { string fingerPrint = ToSHA1(url); diff --git a/MatterControlLib/PartPreviewWindow/MainViewWidget.cs b/MatterControlLib/PartPreviewWindow/MainViewWidget.cs index 0e70a014b..7b438bcfd 100644 --- a/MatterControlLib/PartPreviewWindow/MainViewWidget.cs +++ b/MatterControlLib/PartPreviewWindow/MainViewWidget.cs @@ -185,7 +185,7 @@ namespace MatterHackers.MatterControl.PartPreviewWindow { this.CreatePartTab().ConfigureAwait(false); } - + string tabKey = ApplicationController.Instance.MainTabKey; if (string.IsNullOrEmpty(tabKey)) @@ -278,7 +278,7 @@ namespace MatterHackers.MatterControl.PartPreviewWindow { SetLinkButtonsVisibility(s, new StringEventArgs("Unknown")); }, ref unregisterEvents); - + ApplicationController.Instance.MainView = this; } @@ -635,7 +635,6 @@ namespace MatterHackers.MatterControl.PartPreviewWindow } #endif - private void Printer_SettingChanged(object s, EventArgs e) { if (s is PrinterSettings printerSettings