Skip to content

Commit 38cf906

Browse files
committed
Update allowed update link locations
1 parent 0c35136 commit 38cf906

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

The Long Dark Save Editor 2/MainWindow.xaml.cs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
using Newtonsoft.Json;
1+
using Newtonsoft.Json;
22
using System;
33
using System.Collections.Generic;
44
using System.Collections.ObjectModel;
@@ -201,7 +201,8 @@ async public void CheckForUpdates()
201201
{
202202
string url = newerVersions[newerVersions.Count - 1].url;
203203
Uri uri = new Uri(url);
204-
if (string.Equals(uri.Host, "www.moddb.com", StringComparison.OrdinalIgnoreCase))
204+
if (string.Equals(uri.Host, "www.moddb.com", StringComparison.OrdinalIgnoreCase) ||
205+
string.Equals(uri.Host, "github.com", StringComparison.OrdinalIgnoreCase))
205206
{
206207
Process.Start(url);
207208
}

0 commit comments

Comments
 (0)