Skip to content
This repository was archived by the owner on Dec 5, 2024. It is now read-only.
This repository was archived by the owner on Dec 5, 2024. It is now read-only.

null GUIContent resulting in warning spam #472

@AngryAnt

Description

@AngryAnt

github-unity.log

Description

Any interaction with the GitHub for Unity window spams the log with warnings, rendering the log useless.

Steps to Reproduce

  1. Added plugin to project
  2. Launched window via Window menu
  3. Interacted with window GUI

Expected behavior: Empty log

Actual behavior: Spam of warning:

GUIContent is null. Use GUIContent.none.
UnityEngine.GUILayout:Label(GUIContent, GUIStyle, GUILayoutOption[])
GitHub.Unity.Window:DoHeaderGUI() (at C:/Users/Spade/Projects/GitHub/Unity/src/UnityExtension/Assets/Editor/GitHub.Unity/UI/Window.cs:306)
GitHub.Unity.Window:OnUI() (at C:/Users/Spade/Projects/GitHub/Unity/src/UnityExtension/Assets/Editor/GitHub.Unity/UI/Window.cs:158)
GitHub.Unity.BaseWindow:OnGUI() (at C:/Users/Spade/Projects/GitHub/Unity/src/UnityExtension/Assets/Editor/GitHub.Unity/UI/BaseWindow.cs:87)
UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr)

Reproduces how often: Once. On first launch after install. After Unity Editor relaunch the header renders as expected and the log is empty.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions