fix not-install steam

This commit is contained in:
AleX_Z 2020-02-05 22:53:13 +03:00
parent 3e8164fcc1
commit a5bbb8f563

View File

@ -11,8 +11,8 @@ namespace UniversalValveToolbox.Utils {
public static SteamDataViewModel SteamData {
get {
var result = new SteamDataViewModel();
result.SteamPid = SteamPathsUtil.GetActiveProcessSteamData().PID;
result.UserNameSteam = SteamPathsUtil.GetSteamData().LastGameNameUsed;
result.SteamPid = SteamPathsUtil.GetActiveProcessSteamData()?.PID ?? 0;
result.UserNameSteam = SteamPathsUtil.GetSteamData()?.LastGameNameUsed ?? null;
return result;
}