Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Mossimos committed Apr 18, 2022
1 parent 4093323 commit ec4a224
Showing 1 changed file with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -222,11 +222,10 @@ public void SetCurrentUser(string userName)
var registryVdfPath = GetRegistryVdfPath();
if (!string.IsNullOrWhiteSpace(registryVdfPath) && File.Exists(registryVdfPath))
{
dynamic v = VdfHelper.Read(registryVdfPath);
var autoLoginUser = v.Value.HKCU.Software.Valve.Steam.AutoLoginUser;
if (autoLoginUser != null)
dynamic v = VdfHelper.Read(registryVdfPath);
if (v.Value.HKCU.Software.Valve.Steam.AutoLoginUser != null)
{
autoLoginUser = userName;
v.Value.HKCU.Software.Valve.Steam.AutoLoginUser = userName;
VdfHelper.Write(registryVdfPath, v);
}
else
Expand Down

0 comments on commit ec4a224

Please sign in to comment.