From a5bbb8f563904c890e3917264b9b62e14e1374fd Mon Sep 17 00:00:00 2001 From: AleX_Z Date: Wed, 5 Feb 2020 22:53:13 +0300 Subject: [PATCH] fix not-install steam --- src/UniversalValveToolbox/Utils/SteamManager.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/UniversalValveToolbox/Utils/SteamManager.cs b/src/UniversalValveToolbox/Utils/SteamManager.cs index 533bc77..97c0d85 100644 --- a/src/UniversalValveToolbox/Utils/SteamManager.cs +++ b/src/UniversalValveToolbox/Utils/SteamManager.cs @@ -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; }