Skip to content
This repository was archived by the owner on Dec 5, 2024. It is now read-only.
This repository was 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

Description

@meaghanlewis

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();
}
}

Metadata

Metadata

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions