aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/PPC
diff options
context:
space:
mode:
authorRoy Ben-Shabat <Roy@Twine-s.com>2020-01-30 14:39:12 +0200
committerRoy Ben-Shabat <Roy@Twine-s.com>2020-01-30 14:39:12 +0200
commite1a8c002ded63f0ff87f8b2e9dc93370ff51e5ba (patch)
treeba3893454a17094cc3f79953d37c7bab162b3c41 /Software/Visual_Studio/PPC
parentd6bc264745261638300e33a17c56df4ebffa2d88 (diff)
downloadTango-e1a8c002ded63f0ff87f8b2e9dc93370ff51e5ba.tar.gz
Tango-e1a8c002ded63f0ff87f8b2e9dc93370ff51e5ba.zip
Added auto update check interval to 30 minutes.
Added auto update check interval to PPC settings. Updated event types PMR.
Diffstat (limited to 'Software/Visual_Studio/PPC')
-rw-r--r--Software/Visual_Studio/PPC/Tango.PPC.Common/MachineUpdate/MachineUpdateManager.cs6
-rw-r--r--Software/Visual_Studio/PPC/Tango.PPC.Common/PPCSettings.cs6
2 files changed, 9 insertions, 3 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 ded4d1dae..73a236dde 100644
--- a/Software/Visual_Studio/PPC/Tango.PPC.Common/MachineUpdate/MachineUpdateManager.cs
+++ b/Software/Visual_Studio/PPC/Tango.PPC.Common/MachineUpdate/MachineUpdateManager.cs
@@ -106,11 +106,11 @@ namespace Tango.PPC.Common.MachineUpdate
_logs = new List<LogItemBase>();
LogManager.NewLog += LogManager_NewLog;
- _checkForUpdateTimer = new System.Timers.Timer(TimeSpan.FromMinutes(1).TotalMilliseconds);
+ _settings = SettingsManager.Default.GetOrCreate<PPCSettings>();
+
+ _checkForUpdateTimer = new System.Timers.Timer(_settings.AutoUpdateCheckInterval.TotalMilliseconds);
_checkForUpdateTimer.Elapsed += _checkForUpdateTimer_Elapsed;
_checkForUpdateTimer.Start();
-
- _settings = SettingsManager.Default.GetOrCreate<PPCSettings>();
}
#endregion
diff --git a/Software/Visual_Studio/PPC/Tango.PPC.Common/PPCSettings.cs b/Software/Visual_Studio/PPC/Tango.PPC.Common/PPCSettings.cs
index bea67c702..aacc40168 100644
--- a/Software/Visual_Studio/PPC/Tango.PPC.Common/PPCSettings.cs
+++ b/Software/Visual_Studio/PPC/Tango.PPC.Common/PPCSettings.cs
@@ -216,6 +216,11 @@ namespace Tango.PPC.Common
public bool AutoCheckForUpdates { get; set; }
/// <summary>
+ /// Gets or sets the automatic update check interval.
+ /// </summary>
+ public TimeSpan AutoUpdateCheckInterval { get; set; }
+
+ /// <summary>
/// Gets or sets a value indicating whether to enable the automatic thread loading support.
/// </summary>
public bool EnableAutomaticThreadLoading { get; set; }
@@ -287,6 +292,7 @@ namespace Tango.PPC.Common
DisplayPowerUpScreen = true;
PowerUpScreenTimeout = TimeSpan.FromSeconds(60);
AutoCheckForUpdates = true;
+ AutoUpdateCheckInterval = TimeSpan.FromMinutes(30);
EnableAutomaticThreadLoading = true;
DisplayAutomaticThreadLoadingScreen = true;
EnableEmbeddedDebugLogs = true;