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

Commit cd55c32

Browse files
Creating constant out of button text
1 parent 460744b commit cd55c32

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ class PublishView : Subview
1111
private const string Title = "Publish this repository to GitHub";
1212
private const string PrivateRepoMessage = "You choose who can see and commit to this repository";
1313
private const string PublicRepoMessage = "Anyone can see this repository. You choose who can commit";
14+
private const string PublishViewCreateButton = "Create";
1415

1516
[SerializeField] private string username;
1617
[SerializeField] private string[] owners = { };
@@ -193,7 +194,7 @@ public override void OnGUI()
193194
{
194195
GUILayout.FlexibleSpace();
195196
GUI.enabled = !string.IsNullOrEmpty(repoName) && !isBusy;
196-
if (GUILayout.Button("Create"))
197+
if (GUILayout.Button(PublishViewCreateButton))
197198
{
198199
isBusy = true;
199200

0 commit comments

Comments
 (0)