提交 16206499 编写于 作者: 魔术师Dix's avatar 魔术师Dix

【Feature】添加一个判定版本是否拉取的方法;

上级 461704b9
......@@ -102,6 +102,17 @@
return pkg.InstallVersion == version;
}
/// <summary>
/// 当前版本/包是否是在拉取中;
/// </summary>
public static bool IsFetching(this UpmPackageVersion version)
{
if (version == null) return false;
var pkg = AppState.FindPackage(version.Name);
if (pkg == null) return false;
return pkg.IsFetching;
}
public static E_PackageState GetState(this UPackage pkg)
{
if (pkg == null) return E_PackageState.None;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册