This repository was archived by the owner on Dec 5, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +1
-2
lines changed
src/UnityExtension/Assets/Editor/GitHub.Unity/UI Expand file tree Collapse file tree 1 file changed +1
-2
lines changed Original file line number Diff line number Diff line change @@ -37,7 +37,6 @@ class HistoryView : Subview
37
37
private const int HistoryExtraItemCount = 10 ;
38
38
private const float MaxChangelistHeightRatio = .2f ;
39
39
40
- [ NonSerialized ] private string currentRemote = "placeholder" ;
41
40
[ NonSerialized ] private int historyStartIndex ;
42
41
[ NonSerialized ] private int historyStopIndex ;
43
42
[ NonSerialized ] private float lastWidth ;
@@ -196,7 +195,6 @@ private void UpdateStatusOnMainThread(GitStatus status)
196
195
197
196
private void UpdateStatus ( GitStatus status )
198
197
{
199
- currentRemote = Repository . CurrentRemote . HasValue ? Repository . CurrentRemote . Value . Name : null ;
200
198
statusAhead = status . Ahead ;
201
199
statusBehind = status . Behind ;
202
200
}
@@ -351,6 +349,7 @@ public void OnEmbeddedGUI()
351
349
var isPublished = Repository . CurrentRemote . HasValue ;
352
350
if ( isPublished )
353
351
{
352
+ var currentRemote = Repository . CurrentRemote . Value . Name ;
354
353
GUI . enabled = currentRemote != null ;
355
354
var fetchClicked = GUILayout . Button ( FetchButtonText , Styles . HistoryToolbarButtonStyle ) ;
356
355
GUI . enabled = true ;
You can’t perform that action at this time.
0 commit comments