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

Overlays in asset explorer only show for repositories with a remote #910

Closed
meaghanlewis opened this issue Sep 17, 2018 · 0 comments
Closed
Assignees
Labels

Comments

@meaghanlewis
Copy link
Contributor

meaghanlewis commented Sep 17, 2018

Description

Steps to Reproduce

  1. Create a new Unity project and initialize the GitHub extension
  2. Initialize the project
  3. Add some new assets to the project
  4. Open the Project view and look under assets.

Expected behavior:
Overlay on new or modified assets should appear.

Actual behavior:
The overlay does not appear on assets without a remote.

screen shot 2018-09-17 at 11 41 37 am

The piece of code that needs to be fixed is here:

private static bool IsInitialized { get { return Repository != null && Repository.CurrentRemote.HasValue; } }
public static void Initialize(IApplicationManager theManager)
{
EditorApplication.projectWindowItemOnGUI -= OnProjectWindowItemGUI;
EditorApplication.projectWindowItemOnGUI += OnProjectWindowItemGUI;
manager = theManager;
if (IsInitialized)
{
Repository.StatusEntriesChanged += RepositoryOnStatusEntriesChanged;
Repository.LocksChanged += RepositoryOnLocksChanged;
ValidateCachedData();
}
}

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants