From f98f22076b68c65c8d8319cec7ab6f6c35f67616 Mon Sep 17 00:00:00 2001 From: Allen Date: Fri, 19 Feb 2016 11:25:17 -0500 Subject: [PATCH] Check for update IF Check for updates only if "Automatic Updates" is checked in the unity preferences. --- Plugins/Editor/VSCode.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Plugins/Editor/VSCode.cs b/Plugins/Editor/VSCode.cs index efa56fd..3d444fb 100644 --- a/Plugins/Editor/VSCode.cs +++ b/Plugins/Editor/VSCode.cs @@ -253,7 +253,7 @@ static VSCode() // Add Update Check DateTime targetDate = LastUpdate.AddDays(UpdateTime); - if (DateTime.Now >= targetDate) + if (DateTime.Now >= targetDate && AutomaticUpdates) { CheckForUpdate(); } @@ -1193,4 +1193,4 @@ private static void OnGeneratedCSProjectFiles() VSCode.UpdateSolution(); } } -} \ No newline at end of file +}