aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/PPC/Tango.PPC.Common/MachineUpdate/MachineUpdateManager.cs
diff options
context:
space:
mode:
authorRoy Ben Shabat <Roy.mail.net@gmail.com>2021-01-01 04:14:42 +0200
committerRoy Ben Shabat <Roy.mail.net@gmail.com>2021-01-01 04:14:42 +0200
commit904753380ad0621f604b8ff38dfc59371b78bda3 (patch)
tree5116d74dc63b660f0aa0fb9d328584a11f5d2e06 /Software/Visual_Studio/PPC/Tango.PPC.Common/MachineUpdate/MachineUpdateManager.cs
parent7fdd6c233aafbb0dabbad5a74faac0592f76fa53 (diff)
downloadTango-904753380ad0621f604b8ff38dfc59371b78bda3.tar.gz
Tango-904753380ad0621f604b8ff38dfc59371b78bda3.zip
Fixed some bugs with thread loading wizard.
fail proof notification bar min height. (maybe timing issue) PPC auto update first check after 30 seconds always regardless of settings.
Diffstat (limited to 'Software/Visual_Studio/PPC/Tango.PPC.Common/MachineUpdate/MachineUpdateManager.cs')
-rw-r--r--Software/Visual_Studio/PPC/Tango.PPC.Common/MachineUpdate/MachineUpdateManager.cs9
1 files changed, 7 insertions, 2 deletions
diff --git a/Software/Visual_Studio/PPC/Tango.PPC.Common/MachineUpdate/MachineUpdateManager.cs b/Software/Visual_Studio/PPC/Tango.PPC.Common/MachineUpdate/MachineUpdateManager.cs
index c115f4f5b..57c3c9f34 100644
--- a/Software/Visual_Studio/PPC/Tango.PPC.Common/MachineUpdate/MachineUpdateManager.cs
+++ b/Software/Visual_Studio/PPC/Tango.PPC.Common/MachineUpdate/MachineUpdateManager.cs
@@ -115,7 +115,7 @@ namespace Tango.PPC.Common.MachineUpdate
_settings = SettingsManager.Default.GetOrCreate<PPCSettings>();
- _checkForUpdateTimer = new System.Timers.Timer(_settings.AutoUpdateCheckInterval.TotalMilliseconds);
+ _checkForUpdateTimer = new System.Timers.Timer(TimeSpan.FromSeconds(30).TotalMilliseconds);
_checkForUpdateTimer.Elapsed += _checkForUpdateTimer_Elapsed;
_checkForUpdateTimer.Stop();
@@ -1710,6 +1710,8 @@ namespace Tango.PPC.Common.MachineUpdate
private async void _checkForUpdateTimer_Elapsed(object sender, System.Timers.ElapsedEventArgs e)
{
+ _checkForUpdateTimer.Interval = _settings.AutoUpdateCheckInterval.TotalMilliseconds;
+
if (EnableAutoCheckForUpdates && _settings.AutoCheckForUpdates && !_isUpdating)
{
_checkForUpdateTimer.Stop();
@@ -1723,7 +1725,10 @@ namespace Tango.PPC.Common.MachineUpdate
UpdateAvailable?.Invoke(this, response);
}
}
- catch { }
+ catch (Exception ex)
+ {
+ Debug.WriteLine(ex);
+ }
_checkForUpdateTimer.Start();
}