Skip to content

Commit

Permalink
Clean: debug logs and code shorthand
Browse files Browse the repository at this point in the history
  • Loading branch information
ababilinski committed Jul 19, 2021
1 parent 8c10bde commit 7516f3e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion Editor/CustomGuiContent.cs
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,10 @@ public static bool DrawConditionButton(string label, bool condition, string cond

public static bool DrawConditionButton(GUIContent label, bool condition, GUIContent conditionMetText, GUIContent conditionMissingText, GUIStyle buttonStyle, bool disableOnConditionMet = true, GUIStyle groupStyle = null, Color? conditionMetColor = null, Color? conditionMissingColor = null)
{
groupStyle ??= EditorStyles.helpBox;
if (groupStyle == null)
{
groupStyle = EditorStyles.helpBox;
}

var lastEnabledGUIState = GUI.enabled;
bool returnValue = false;
Expand Down
2 changes: 1 addition & 1 deletion Editor/MagicLeapSetupWindow.cs
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ public static void Open()
var autoShow = EditorPrefs.GetBool(AutoShowEditorPrefKey, true);
if (!MagicLeapSetup.HasRootSDKPathInEditorPrefs || !MagicLeapSetup.HasLuminInstalled || EditorUserBuildSettings.activeBuildTarget != BuildTarget.Lumin)
{
Debug.Log($"{MagicLeapSetup.HasRootSDKPath} | {MagicLeapSetup.HasLuminInstalled} | {EditorUserBuildSettings.activeBuildTarget == BuildTarget.Lumin}");

autoShow = true;
EditorPrefs.SetBool(AutoShowEditorPrefKey, true);
}
Expand Down

0 comments on commit 7516f3e

Please sign in to comment.