mirror of
https://github.com/greenshot/greenshot
synced 2025-08-19 21:13:23 -07:00
Added some logic for the update checks:
* release only sees RC & unstable if "check for unstable" is set * Release candidates only sees unstable if "check for unstable" is set Meaning even if check for unstable is not set: * unstable versions always find newer unstable versions * RC's always find newer RC's * Releases only find releases git-svn-id: http://svn.code.sf.net/p/greenshot/code/trunk@2151 7dccd23d-a4a3-4e1f-8c07-b4c1b4018ab4
This commit is contained in:
parent
c29d38d546
commit
b4bc530ee6
3 changed files with 58 additions and 9 deletions
|
@ -55,7 +55,34 @@ namespace GreenshotPlugin.Core {
|
|||
get {return language;}
|
||||
set {language = value;}
|
||||
}
|
||||
|
||||
|
||||
public bool isExe {
|
||||
get {
|
||||
if (file != null) {
|
||||
return file.ToLower().EndsWith(".exe");
|
||||
}
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
public bool isUnstable {
|
||||
get {
|
||||
if (file != null) {
|
||||
return file.ToLower().Contains("unstable");
|
||||
}
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
public bool isReleaseCandidate {
|
||||
get {
|
||||
if (file != null) {
|
||||
return file.ToLower().Contains("RC");
|
||||
}
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
public SourceforgeFile(string file, string pubdate, string link, string directLink) {
|
||||
this.file = file;
|
||||
this.pubdate = DateTime.Parse(pubdate);
|
||||
|
@ -78,7 +105,7 @@ namespace GreenshotPlugin.Core {
|
|||
HttpWebRequest webRequest;
|
||||
XmlDocument rssDoc = new XmlDocument();
|
||||
try {
|
||||
webRequest = (HttpWebRequest)GreenshotPlugin.Core.NetworkHelper.CreateWebRequest(RSSFEED);
|
||||
webRequest = (HttpWebRequest)NetworkHelper.CreateWebRequest(RSSFEED);
|
||||
XmlTextReader rssReader = new XmlTextReader(webRequest.GetResponse().GetResponseStream());
|
||||
|
||||
// Load the XML content into a XmlDocument
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue