summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorsr55 <[email protected]>2008-04-16 15:42:06 +0000
committersr55 <[email protected]>2008-04-16 15:42:06 +0000
commit1308ef2eb7db6c9db40abec7e5d184cf674ee64b (patch)
treea3c84b3a93662157789773d92469f439072e0e17
parentfd01e998d0c8e907417501e819fc711c7d4e6e5a (diff)
WinGUI:
- Moved appcast path from the RssReader.cs to the settings. Just makes it a bit easier to change for stable/unstable builds git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@1422 b64f7644-9d1e-0410-96f1-a4d463321fa5
-rw-r--r--win/C#/Functions/RssReader.cs2
-rw-r--r--win/C#/Properties/Settings.Designer.cs12
-rw-r--r--win/C#/Properties/Settings.settings3
-rw-r--r--win/C#/app.config3
4 files changed, 19 insertions, 1 deletions
diff --git a/win/C#/Functions/RssReader.cs b/win/C#/Functions/RssReader.cs
index 3d69a891f..a5643a301 100644
--- a/win/C#/Functions/RssReader.cs
+++ b/win/C#/Functions/RssReader.cs
@@ -28,7 +28,7 @@ namespace Handbrake.Functions
private string readRss()
{
- rssReader = new XmlTextReader("http://handbrake.fr/appcast.xml");
+ rssReader = new XmlTextReader(Properties.Settings.Default.appcast);
rssDoc = new XmlDocument();
rssDoc.Load(rssReader);
diff --git a/win/C#/Properties/Settings.Designer.cs b/win/C#/Properties/Settings.Designer.cs
index 77b250af7..623992303 100644
--- a/win/C#/Properties/Settings.Designer.cs
+++ b/win/C#/Properties/Settings.Designer.cs
@@ -166,5 +166,17 @@ namespace Handbrake.Properties {
this["autoNamePath"] = value;
}
}
+
+ [global::System.Configuration.UserScopedSettingAttribute()]
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.Configuration.DefaultSettingValueAttribute("http://handbrake.fr/appcast.xml")]
+ public string appcast {
+ get {
+ return ((string)(this["appcast"]));
+ }
+ set {
+ this["appcast"] = value;
+ }
+ }
}
}
diff --git a/win/C#/Properties/Settings.settings b/win/C#/Properties/Settings.settings
index 45f50b8db..946b661fc 100644
--- a/win/C#/Properties/Settings.settings
+++ b/win/C#/Properties/Settings.settings
@@ -38,5 +38,8 @@
<Setting Name="autoNamePath" Type="System.String" Scope="User">
<Value Profile="(Default)" />
</Setting>
+ <Setting Name="appcast" Type="System.String" Scope="User">
+ <Value Profile="(Default)">http://handbrake.fr/appcast.xml</Value>
+ </Setting>
</Settings>
</SettingsFile> \ No newline at end of file
diff --git a/win/C#/app.config b/win/C#/app.config
index 091deef5b..dd553eea8 100644
--- a/win/C#/app.config
+++ b/win/C#/app.config
@@ -43,6 +43,9 @@
<setting name="autoNamePath" serializeAs="String">
<value />
</setting>
+ <setting name="appcast" serializeAs="String">
+ <value>http://handbrake.fr/appcast.xml</value>
+ </setting>
</Handbrake.Properties.Settings>
</userSettings>
</configuration> \ No newline at end of file