Skip to content
Snippets Groups Projects
Commit e86c206e authored by Andreia Gaita's avatar Andreia Gaita
Browse files

Refresh status again if it fails to return initially

parent 8218039b
No related branches found
No related tags found
No related merge requests found
......@@ -39,6 +39,11 @@ namespace GitHub.Unity
private static void OnStatusUpdate(GitStatus update)
{
if (update.Entries == null)
{
Refresh();
return;
}
entries.Clear();
entries.AddRange(update.Entries);
......
......@@ -81,6 +81,7 @@ namespace GitHub.Unity
{
base.OnShow();
StatusService.Instance.RegisterCallback(OnStatusUpdate);
Refresh();
}
public override void OnHide()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment