diff --git a/src/mhed/FrmMhed.cs b/src/mhed/FrmMhed.cs index 4157257..7a1ef50 100644 --- a/src/mhed/FrmMhed.cs +++ b/src/mhed/FrmMhed.cs @@ -182,7 +182,7 @@ private bool IsAutoUpdateCheckNeeded() private bool IsCleanupNeeded() { if (!App.Platform.AutoUpdateSupported) { return false; } - return (DateTime.Now - Properties.Settings.Default.LastCleanupTime).Days >= 7; + return (DateTime.Now - Properties.Settings.Default.LastCleanupTime).Days >= Properties.Settings.Default.CleanupInterval; } /// diff --git a/src/mhed/Properties/Settings.Designer.cs b/src/mhed/Properties/Settings.Designer.cs index 81e41d3..904c0bb 100644 --- a/src/mhed/Properties/Settings.Designer.cs +++ b/src/mhed/Properties/Settings.Designer.cs @@ -175,5 +175,17 @@ public int UpdateCheckInterval { this["UpdateCheckInterval"] = value; } } + + [global::System.Configuration.UserScopedSettingAttribute()] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.Configuration.DefaultSettingValueAttribute("7")] + public int CleanupInterval { + get { + return ((int)(this["CleanupInterval"])); + } + set { + this["CleanupInterval"] = value; + } + } } } diff --git a/src/mhed/Properties/Settings.settings b/src/mhed/Properties/Settings.settings index f688b8c..12880bb 100644 --- a/src/mhed/Properties/Settings.settings +++ b/src/mhed/Properties/Settings.settings @@ -41,5 +41,8 @@ 7 + + 7 + \ No newline at end of file diff --git a/src/mhed/app.config b/src/mhed/app.config index 2d5dc65..d4bd8ca 100644 --- a/src/mhed/app.config +++ b/src/mhed/app.config @@ -46,6 +46,9 @@ 7 + + 7 +