Skip to content

Commit

Permalink
0.8.2
Browse files Browse the repository at this point in the history
  • Loading branch information
mob-sakai committed Jun 11, 2019
1 parent f47a707 commit 066dc0f
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 7 deletions.
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# Changelog

## [0.8.2](https://github.com/mob-sakai/UpmGitExtension/tree/0.8.2) (2019-04-16)

[Full Changelog](https://github.com/mob-sakai/UpmGitExtension/compare/0.8.1...0.8.2)

**Fixed bugs:**

- An error occurs when installing 0.7.0+ [\#31](https://github.com/mob-sakai/UpmGitExtension/issues/31)

## [0.8.1](https://github.com/mob-sakai/UpmGitExtension/tree/0.8.1) (2019-04-12)

[Full Changelog](https://github.com/mob-sakai/UpmGitExtension/compare/0.8.0...0.8.1)
Expand Down
17 changes: 11 additions & 6 deletions Editor/Scripts/Settings.cs
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,14 @@ static Settings Instance
.Select(x=>AssetDatabase.LoadAssetAtPath<Settings> (x))
.FirstOrDefault ();
}
if (s_EmptyHostData == null)
{
s_EmptyHostData = new HostData ()
{
LogoDark = EditorGUIUtility.FindTexture ("buildsettings.web.small"),
LogoLight = EditorGUIUtility.FindTexture ("d_buildsettings.web.small"),
};
}
return s_Instance;
}
}
Expand All @@ -31,12 +39,9 @@ static Settings Instance

public static HostData GetHostData (string packageId)
{
return Instance.m_HostData.FirstOrDefault (x => packageId.Contains (x.Domain))
?? new HostData ()
{
LogoDark = EditorGUIUtility.FindTexture ("buildsettings.web.small"),
LogoLight = EditorGUIUtility.FindTexture ("d_buildsettings.web.small"),
};
return Instance
? Instance.m_HostData.FirstOrDefault (x => packageId.Contains (x.Domain)) ?? s_EmptyHostData
: s_EmptyHostData;
}
}

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "com.coffee.upm-git-extension",
"displayName": "UPM Git Extension",
"description": "This plugin extends the UI of Unity Package Manager for the packages installed with git.\n\n - Support GitHub, Bitbucket and GitLab\n - Add link to the repogitory\n - link to the online documents\n - Update the package with a specific tag/branch\n - Remove the package",
"version": "0.8.1",
"version": "0.8.2",
"unity": "2018.3",
"license": "MIT",
"repository": {
Expand Down

0 comments on commit 066dc0f

Please sign in to comment.