Skip to content

Commit 2b480ba

Browse files
committed
New version checking
1 parent af235af commit 2b480ba

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

DataCommander.Providers/MainForm.cs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,14 +173,17 @@ private void Timer_Tick(object sender, EventArgs e)
173173
try
174174
{
175175
using (var webClient = new WebClient())
176-
remoteVersion = webClient.DownloadString("https://raw.githubusercontent.com/csbernath/DataCommander/master/Version.md");
176+
remoteVersion = webClient.DownloadString("https://raw.githubusercontent.com/csbernath/DataCommander/master/DataCommander/Version.txt");
177177
}
178178
catch
179179
{
180180
}
181181

182182
if (remoteVersion != null && localVersion != remoteVersion)
183+
{
184+
_toolStripStatusLabel.ForeColor = Color.Red;
183185
_toolStripStatusLabel.Text = $"New version is available. Local version: {localVersion}, remote version: {remoteVersion}";
186+
}
184187
}
185188

186189
UpdateTotalMemory();

0 commit comments

Comments
 (0)