Skip to content

Commit

Permalink
Check for update IF
Browse files Browse the repository at this point in the history
Check for updates only if "Automatic Updates" is checked in the unity preferences.
  • Loading branch information
Allough committed Feb 19, 2016
1 parent 9a23536 commit f98f220
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Plugins/Editor/VSCode.cs
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,7 @@ static VSCode()

// Add Update Check
DateTime targetDate = LastUpdate.AddDays(UpdateTime);
if (DateTime.Now >= targetDate)
if (DateTime.Now >= targetDate && AutomaticUpdates)
{
CheckForUpdate();
}
Expand Down Expand Up @@ -1193,4 +1193,4 @@ private static void OnGeneratedCSProjectFiles()
VSCode.UpdateSolution();
}
}
}
}

0 comments on commit f98f220

Please sign in to comment.