支持删除cdk

This commit is contained in:
辉鸭蛋
2025-06-01 23:51:09 +08:00
parent 658f45fa52
commit c76db1bb54

View File

@@ -73,7 +73,7 @@ public static class MirrorChyanHelper
);
if (string.IsNullOrEmpty(cdk))
{
Toast.Warning("输入CDK为空无法继续操作");
DeleteCdk();
}
else
{
@@ -85,4 +85,9 @@ public static class MirrorChyanHelper
CredentialPersistence.LocalMachine);
}
}
public static void DeleteCdk()
{
CredentialManagerHelper.DeleteCredential(MirrorChyanCdkAppName);
}
}