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

Commit 086ea4a

Browse files
Merge pull request #452 from github-for-unity/fixes/451-title-icon-loading
Regenerate title content if Unity has thrown away our logo image
2 parents 106628d + 4ea4aeb commit 086ea4a

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

src/UnityExtension/Assets/Editor/GitHub.Unity/UI/PopupWindow.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,8 @@ public override void OnDisable()
7070
public override void OnDataUpdate()
7171
{
7272
base.OnDataUpdate();
73+
if (titleContent.image == null)
74+
titleContent = new GUIContent(ActiveView.Title, Styles.SmallLogo);
7375
ActiveView.OnDataUpdate();
7476
}
7577

src/UnityExtension/Assets/Editor/GitHub.Unity/UI/Window.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,8 @@ public override void OnDisable()
112112
public override void OnDataUpdate()
113113
{
114114
base.OnDataUpdate();
115-
115+
if (titleContent.image == null)
116+
titleContent = new GUIContent(Title, Styles.SmallLogo);
116117
MaybeUpdateData();
117118

118119
if (ActiveView != null)

0 commit comments

Comments
 (0)