This repository was archived by the owner on Dec 5, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +10
-2
lines changed
src/UnityExtension/Assets/Editor/GitHub.Unity/UI Expand file tree Collapse file tree 2 files changed +10
-2
lines changed Original file line number Diff line number Diff line change 3131namespace System
3232{
3333 internal static class AssemblyVersionInformation {
34- internal const string Version = "0.20 .0" ;
34+ internal const string Version = "0.21 .0" ;
3535 }
3636}
Original file line number Diff line number Diff line change @@ -45,6 +45,7 @@ class SettingsView : Subview
4545 [ SerializeField ] private bool hasRemote ;
4646 [ NonSerialized ] private bool remoteHasChanged ;
4747 [ NonSerialized ] private bool userDataHasChanged ;
48+ [ NonSerialized ] private bool locksHaveChanged ;
4849
4950 [ SerializeField ] private string newGitName ;
5051 [ SerializeField ] private string newGitEmail ;
@@ -71,6 +72,7 @@ public override void OnEnable()
7172
7273 remoteHasChanged = true ;
7374 metricsHasChanged = true ;
75+ locksHaveChanged = true ;
7476 }
7577
7678 public override void OnDisable ( )
@@ -208,7 +210,7 @@ private void MaybeUpdateData()
208210
209211 userDataHasChanged = Repository . User . Name != gitName || Repository . User . Email != gitEmail ;
210212
211- if ( ! remoteHasChanged && ! userDataHasChanged )
213+ if ( ! remoteHasChanged && ! userDataHasChanged && ! locksHaveChanged )
212214 return ;
213215
214216 if ( userDataHasChanged )
@@ -234,6 +236,12 @@ private void MaybeUpdateData()
234236 newRepositoryRemoteUrl = repositoryRemoteUrl = activeRemote . Value . Url ;
235237 }
236238 }
239+
240+ if ( locksHaveChanged )
241+ {
242+ locksHaveChanged = false ;
243+ lockedFiles = Repository . CurrentLocks . ToList ( ) ;
244+ }
237245 }
238246
239247 private void Repository_OnActiveRemoteChanged ( string remote )
You can’t perform that action at this time.
0 commit comments