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

Commit 3bc7fec

Browse files
committed
Fix the UI when there are release notes and a message
1 parent 8696dd4 commit 3bc7fec

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

src/UnityExtension/Assets/Editor/GitHub.Unity/UpdateCheck.cs

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -167,26 +167,25 @@ private void OnGUI()
167167
{
168168
GUILayout.Space(20);
169169

170+
scrollPos = EditorGUILayout.BeginScrollView(scrollPos, GUILayout.Width(405), GUILayout.Height(200));
170171
if (hasMessage)
171172
{
172-
scrollPos = EditorGUILayout.BeginScrollView(scrollPos, GUILayout.Width(405), GUILayout.Height(200));
173173
EditorGUILayout.LabelField(guiPackageMessage, "WordWrappedLabel");
174-
EditorGUILayout.EndScrollView();
175174
}
176175

177176
if (hasReleaseNotes)
178177
{
179-
scrollPos = EditorGUILayout.BeginScrollView(scrollPos, GUILayout.Width(405), GUILayout.Height(200));
180178
EditorGUILayout.LabelField(guiPackageReleaseNotes, "WordWrappedLabel");
181-
EditorGUILayout.EndScrollView();
182179
}
180+
EditorGUILayout.EndScrollView();
183181
}
184182

185183
GUILayout.Space(20);
186184
EditorGUILayout.BeginHorizontal();
187185
if (GUILayout.Button(guiDownloadNewVersion, GUILayout.Width(200)))
188186
{
189187
Help.BrowseURL(package.Package.Url);
188+
Close();
190189
}
191190

192191
if (GUILayout.Button(guiSkipThisVersion, GUILayout.Width(200)))

0 commit comments

Comments
 (0)