From dde0c4d60d1c1441354e31fbddafa8848bf4cc09 Mon Sep 17 00:00:00 2001 From: Stanley Goldman Date: Wed, 4 Apr 2018 10:51:12 -0400 Subject: [PATCH] Changing what event is listened to --- .../Assets/Editor/GitHub.Unity/UI/ProjectWindowInterface.cs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/UnityExtension/Assets/Editor/GitHub.Unity/UI/ProjectWindowInterface.cs b/src/UnityExtension/Assets/Editor/GitHub.Unity/UI/ProjectWindowInterface.cs index 5cb940fb9..c342f93b3 100644 --- a/src/UnityExtension/Assets/Editor/GitHub.Unity/UI/ProjectWindowInterface.cs +++ b/src/UnityExtension/Assets/Editor/GitHub.Unity/UI/ProjectWindowInterface.cs @@ -34,9 +34,8 @@ public static void Initialize(IRepository repo) if (repository != null) { - repository.TrackingStatusChanged += RepositoryOnStatusChanged; + repository.StatusEntriesChanged += RepositoryOnStatusEntriesChanged; repository.LocksChanged += RepositoryOnLocksChanged; - } } @@ -46,7 +45,7 @@ private static void ValidateCachedData(IRepository repository) repository.CheckAndRaiseEventsIfCacheNewer(CacheType.GitLocks, lastLocksChangedEvent); } - private static void RepositoryOnStatusChanged(CacheUpdateEvent cacheUpdateEvent) + private static void RepositoryOnStatusEntriesChanged(CacheUpdateEvent cacheUpdateEvent) { if (!lastRepositoryStatusChangedEvent.Equals(cacheUpdateEvent)) {