From 0c4a88000b2a9456c2079a256c00b0baf43699a7 Mon Sep 17 00:00:00 2001 From: sr55 Date: Wed, 17 Jun 2009 15:38:29 +0000 Subject: WinGui: - Updated the appcast checker to handle the modified appcast format. - New option to set the number of days between update checks on startup. Default 5 git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@2551 b64f7644-9d1e-0410-96f1-a4d463321fa5 --- win/C#/Properties/Settings.Designer.cs | 35 ++++++++++++++++++++++------------ win/C#/Properties/Settings.settings | 9 ++++++--- 2 files changed, 29 insertions(+), 15 deletions(-) (limited to 'win/C#/Properties') diff --git a/win/C#/Properties/Settings.Designer.cs b/win/C#/Properties/Settings.Designer.cs index d03a34de7..f1eec40c5 100644 --- a/win/C#/Properties/Settings.Designer.cs +++ b/win/C#/Properties/Settings.Designer.cs @@ -215,18 +215,6 @@ namespace Handbrake.Properties { } } - [global::System.Configuration.UserScopedSettingAttribute()] - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.Configuration.DefaultSettingValueAttribute("")] - public string checkSnapshot { - get { - return ((string)(this["checkSnapshot"])); - } - set { - this["checkSnapshot"] = value; - } - } - [global::System.Configuration.UserScopedSettingAttribute()] [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.Configuration.DefaultSettingValueAttribute("{source}-{title}")] @@ -382,5 +370,28 @@ namespace Handbrake.Properties { this["trayIconAlerts"] = value; } } + + [global::System.Configuration.UserScopedSettingAttribute()] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public global::System.DateTime lastUpdateCheckDate { + get { + return ((global::System.DateTime)(this["lastUpdateCheckDate"])); + } + set { + this["lastUpdateCheckDate"] = value; + } + } + + [global::System.Configuration.UserScopedSettingAttribute()] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.Configuration.DefaultSettingValueAttribute("5")] + public int daysBetweenUpdateCheck { + get { + return ((int)(this["daysBetweenUpdateCheck"])); + } + set { + this["daysBetweenUpdateCheck"] = value; + } + } } } diff --git a/win/C#/Properties/Settings.settings b/win/C#/Properties/Settings.settings index d8d2a1c6f..5102e49b1 100644 --- a/win/C#/Properties/Settings.settings +++ b/win/C#/Properties/Settings.settings @@ -50,9 +50,6 @@ - - - {source}-{title} @@ -92,5 +89,11 @@ + + + + + 5 + \ No newline at end of file -- cgit v1.2.3