internal override void OnHeaderControlsGUI() { base.OnHeaderControlsGUI(); // We want to have this button enabled even for immutable package var previousEnabled = GUI.enabled; GUI.enabled = packageState != null && packageState.isValidFile && targets.Length == 1; if (GUILayout.Button(Styles.viewInPackageManager, EditorStyles.miniButton)) { if (!EditorApplication.ExecuteMenuItemWithTemporaryContext("Window/Package Manager", new[] { packageState })) { Debug.LogWarning(s_LocalizedPackageManagerUINotInstalledWarning); } } GUI.enabled = previousEnabled; }