Hush
/trunk/Hush/Utilities/LaunchOnBoot.cs |
@@ -16,10 +16,10 @@ |
switch (enable) |
{ |
case true: |
key.SetValue(Constants.AssemblyName, Assembly.GetEntryAssembly().Location); |
key.SetValue(Constants.ASSEMBLY_NAME, Assembly.GetEntryAssembly().Location); |
break; |
default: |
key.DeleteValue(Constants.AssemblyName, false); |
key.DeleteValue(Constants.ASSEMBLY_NAME, false); |
break; |
} |
} |
@@ -32,7 +32,7 @@ |
using (var key = Registry.CurrentUser.OpenSubKey |
("SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Run", true)) |
{ |
return key?.GetValue(Constants.AssemblyName) != null; |
return key?.GetValue(Constants.ASSEMBLY_NAME) != null; |
} |
} |
} |