don't check for updates when running debug

This commit is contained in:
Jack Baron 2020-10-25 01:15:21 +01:00
parent ad62d5ecbd
commit b268d472bf
No known key found for this signature in database
GPG key ID: CD10BCEEC646C064

View file

@ -20,6 +20,10 @@ namespace ModAssistant
public static async Task<bool> CheckForUpdate()
{
#if DEBUG
return false;
#endif
var resp = await HttpClient.GetAsync(APILatestURL);
var body = await resp.Content.ReadAsStringAsync();
LatestUpdate = JsonSerializer.Deserialize<Update>(body);