clear auto run

pull/2556/head
2dust 2022-08-12 20:24:15 +08:00
parent 7f5bb86127
commit 3275454bd6
1 changed files with 6 additions and 0 deletions

View File

@ -594,6 +594,12 @@ namespace v2rayN
{
try
{
//clear
if (!RegReadValue(autoRunRegPath, "v2rayNAutoRun", "").IsNullOrEmpty())
{
RegWriteValue(autoRunRegPath, "v2rayNAutoRun", "");
}
string value = RegReadValue(autoRunRegPath, autoRunName, "");
string exePath = GetExePath();
if (value?.Equals(exePath) == true || value?.Equals($"\"{exePath}\"") == true)