public void SetInactive() { if (!Sledge.Settings.View.KeepSelectedTool && ToolManager.ActiveTool != null) { _memory.SelectedTool = ToolManager.ActiveTool.GetType(); } if (!Sledge.Settings.View.KeepCameraPositions) { _memory.RememberViewports(ViewportManager.Viewports); } ViewportManager.ClearContexts(); HelperManager.ClearCache(); _subscriptions.Unsubscribe(); }