From 066dc0f9e77b7b0749669970630c0c9cb4af96eb Mon Sep 17 00:00:00 2001 From: mob-sakai Date: Mon, 15 Apr 2019 23:53:14 +0900 Subject: [PATCH] 0.8.2 --- CHANGELOG.md | 8 ++++++++ Editor/Scripts/Settings.cs | 17 +++++++++++------ package.json | 2 +- 3 files changed, 20 insertions(+), 7 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 37f2ff0..689ccb2 100755 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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) diff --git a/Editor/Scripts/Settings.cs b/Editor/Scripts/Settings.cs index c6fa3ce..49c4a91 100644 --- a/Editor/Scripts/Settings.cs +++ b/Editor/Scripts/Settings.cs @@ -23,6 +23,14 @@ static Settings Instance .Select(x=>AssetDatabase.LoadAssetAtPath (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; } } @@ -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; } } diff --git a/package.json b/package.json index b1f88fe..71f772a 100755 --- a/package.json +++ b/package.json @@ -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": {