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

Commit 9bdc30f

Browse files
Using the correct remote name in Push changes dialog
1 parent 6c0791f commit 9bdc30f

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

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

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,6 @@ class HistoryView : Subview
3737
private const int HistoryExtraItemCount = 10;
3838
private const float MaxChangelistHeightRatio = .2f;
3939

40-
[NonSerialized] private string currentRemote = "placeholder";
4140
[NonSerialized] private int historyStartIndex;
4241
[NonSerialized] private int historyStopIndex;
4342
[NonSerialized] private float lastWidth;
@@ -196,7 +195,6 @@ private void UpdateStatusOnMainThread(GitStatus status)
196195

197196
private void UpdateStatus(GitStatus status)
198197
{
199-
currentRemote = Repository.CurrentRemote.HasValue ? Repository.CurrentRemote.Value.Name : null;
200198
statusAhead = status.Ahead;
201199
statusBehind = status.Behind;
202200
}
@@ -351,6 +349,7 @@ public void OnEmbeddedGUI()
351349
var isPublished = Repository.CurrentRemote.HasValue;
352350
if (isPublished)
353351
{
352+
var currentRemote = Repository.CurrentRemote.Value.Name;
354353
GUI.enabled = currentRemote != null;
355354
var fetchClicked = GUILayout.Button(FetchButtonText, Styles.HistoryToolbarButtonStyle);
356355
GUI.enabled = true;

0 commit comments

Comments
 (0)