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

Commit 1c53148

Browse files
Merge pull request #937 from github-for-unity/refrsh-asset-database
Refreshing the asset database differently
2 parents 1ccda46 + 7e44c95 commit 1c53148

File tree

3 files changed

+3
-1
lines changed

3 files changed

+3
-1
lines changed

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -514,6 +514,7 @@ private void SwitchBranch(string branch)
514514
{
515515
UsageTracker.IncrementBranchesViewButtonCheckoutLocalBranch();
516516
Redraw();
517+
AssetDatabase.Refresh();
517518
}
518519
else
519520
{

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

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,6 @@ private static void RepositoryOnStatusEntriesChanged(CacheUpdateEvent cacheUpdat
6767
if (!lastRepositoryStatusChangedEvent.Equals(cacheUpdateEvent))
6868
{
6969
lastRepositoryStatusChangedEvent = cacheUpdateEvent;
70-
AssetDatabase.Refresh();
7170
entries.Clear();
7271
entries.AddRange(Repository.CurrentChanges);
7372
OnStatusUpdate();

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -757,6 +757,8 @@ private void Pull()
757757
EditorUtility.DisplayDialog(Localization.PullActionTitle,
758758
String.Format(Localization.PullSuccessDescription, currentRemoteName),
759759
Localization.Ok);
760+
761+
AssetDatabase.Refresh();
760762
}
761763
else
762764
{

0 commit comments

Comments
 (0)