mirror of
https://github.com/babalae/better-genshin-impact.git
synced 2026-03-15 07:43:20 +08:00
支持删除cdk
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user