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
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 ;
You can’t perform that action at this time.
0 commit comments