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

Commit bc63155

Browse files
StanleyGoldmanshana
authored andcommitted
Renaming the GuiContent variable
1 parent 94f691f commit bc63155

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ class ChangesView : Subview
2323
[NonSerialized] private bool currentLocksHasUpdate;
2424
[NonSerialized] private bool isBusy;
2525

26-
[NonSerialized] private GUIContent revertGuiContent;
26+
[NonSerialized] private GUIContent discardGuiContent;
2727

2828
[SerializeField] private string commitBody = "";
2929
[SerializeField] private string commitMessage = "";
@@ -173,12 +173,12 @@ private GenericMenu CreateContextMenu(ChangesTreeNode node)
173173

174174
if (canDiscard)
175175
{
176-
if (revertGuiContent == null)
176+
if (discardGuiContent == null)
177177
{
178-
revertGuiContent = new GUIContent("Discard");
178+
discardGuiContent = new GUIContent("Discard");
179179
}
180180

181-
genericMenu.AddItem(revertGuiContent, false, () => {
181+
genericMenu.AddItem(discardGuiContent, false, () => {
182182
Repository.DiscardChanges(new List<GitStatusEntry> { node.GitStatusEntry })
183183
.Start();
184184
});

0 commit comments

Comments
 (0)