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

Commit 8312a72

Browse files
committed
🔥 Toggle layout
1 parent c673100 commit 8312a72

File tree

1 file changed

+2
-21
lines changed

1 file changed

+2
-21
lines changed

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

Lines changed: 2 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -146,27 +146,8 @@ public override void OnGUI()
146146
repoName = EditorGUILayout.TextField(RepositoryNameLabel, repoName);
147147
repoDescription = EditorGUILayout.TextField(DescriptionLabel, repoDescription);
148148

149-
GUILayout.Space(Styles.PublishViewSpacingHeight);
150-
151-
GUILayout.BeginVertical();
152-
{
153-
GUILayout.BeginHorizontal();
154-
{
155-
togglePrivate = GUILayout.Toggle(togglePrivate, CreatePrivateRepositoryLabel);
156-
}
157-
GUILayout.EndHorizontal();
158-
159-
GUILayout.BeginHorizontal();
160-
{
161-
GUILayout.Space(Styles.PublishViewSpacingHeight);
162-
var repoPrivacyExplanation = togglePrivate ? PrivateRepoMessage : PublicRepoMessage;
163-
GUILayout.Label(repoPrivacyExplanation, Styles.LongMessageStyle);
164-
}
165-
GUILayout.EndHorizontal();
166-
}
167-
GUILayout.EndVertical();
168-
169-
GUILayout.Space(Styles.PublishViewSpacingHeight);
149+
togglePrivate = EditorGUILayout.Toggle(CreatePrivateRepositoryLabel, togglePrivate);
150+
var repoPrivacyExplanation = togglePrivate ? PrivateRepoMessage : PublicRepoMessage;
170151

171152
GUILayout.BeginHorizontal();
172153
{

0 commit comments

Comments
 (0)