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

Commit

Permalink
Merge pull request #937 from github-for-unity/refrsh-asset-database
Browse files Browse the repository at this point in the history
Refreshing the asset database differently
  • Loading branch information
StanleyGoldman authored Oct 10, 2018
2 parents 1ccda46 + 7e44c95 commit 1c53148
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -514,6 +514,7 @@ private void SwitchBranch(string branch)
{
UsageTracker.IncrementBranchesViewButtonCheckoutLocalBranch();
Redraw();
AssetDatabase.Refresh();
}
else
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,6 @@ private static void RepositoryOnStatusEntriesChanged(CacheUpdateEvent cacheUpdat
if (!lastRepositoryStatusChangedEvent.Equals(cacheUpdateEvent))
{
lastRepositoryStatusChangedEvent = cacheUpdateEvent;
AssetDatabase.Refresh();
entries.Clear();
entries.AddRange(Repository.CurrentChanges);
OnStatusUpdate();
Expand Down
2 changes: 2 additions & 0 deletions src/UnityExtension/Assets/Editor/GitHub.Unity/UI/Window.cs
Original file line number Diff line number Diff line change
Expand Up @@ -757,6 +757,8 @@ private void Pull()
EditorUtility.DisplayDialog(Localization.PullActionTitle,
String.Format(Localization.PullSuccessDescription, currentRemoteName),
Localization.Ok);

AssetDatabase.Refresh();
}
else
{
Expand Down

0 comments on commit 1c53148

Please sign in to comment.