comparison ServerMonitor/Forms/ServerSummaryForm.cs @ 34:9c0e18d65e8b

Build NuGet from source instead of using the NuGet package to fix the update notification always showing when the program is run from Windows startup.
author Brad Greco <brad@bgreco.net>
date Sat, 13 Jul 2019 12:09:10 -0400
parents b0af6b4bed4d
children
comparison
equal deleted inserted replaced
33:69e8ecdbbdd3 34:9c0e18d65e8b
382 } 382 }
383 383
384 /// <summary>Begins checking for program updates in the background.</summary> 384 /// <summary>Begins checking for program updates in the background.</summary>
385 private void CheckForUpdate() 385 private void CheckForUpdate()
386 { 386 {
387 // The latest NuGet package of NAppUpdate (0.5.1) always thinks that an update is available
388 // when the program is run from Windows startup (https://github.com/synhershko/NAppUpdate/pull/122).
389 // The fix has already been made but not released, so the version of NAppUpdate included in
390 // this project was built from source instead of using the NuGet package.
387 UpdateManager manager = UpdateManager.Instance; 391 UpdateManager manager = UpdateManager.Instance;
388 // Make the update manager happy if the program was just restarted to apply an update. 392 // Make the update manager happy if the program was just restarted to apply an update.
389 manager.ReinstateIfRestarted(); 393 manager.ReinstateIfRestarted();
390 manager.UpdateSource = new SimpleWebSource("https://www.bgreco.net/servermonitor/update.xml"); 394 manager.UpdateSource = new SimpleWebSource("https://www.bgreco.net/servermonitor/update.xml");
391 if (manager.State == UpdateManager.UpdateProcessState.NotChecked) 395 if (manager.State == UpdateManager.UpdateProcessState.NotChecked)