mirror of
https://github.com/greenshot/greenshot
synced 2025-08-19 21:13:23 -07:00
Changed download from dynamic "direct" Sourceforge link to GetGreenshot.org so we can display e.g. news.
git-svn-id: http://svn.code.sf.net/p/greenshot/code/trunk@1723 7dccd23d-a4a3-4e1f-8c07-b4c1b4018ab4
This commit is contained in:
parent
b881ca0b94
commit
5ebb95ab10
1 changed files with 5 additions and 13 deletions
|
@ -38,22 +38,11 @@ namespace Greenshot.Experimental {
|
||||||
public static class UpdateHelper {
|
public static class UpdateHelper {
|
||||||
private static log4net.ILog LOG = log4net.LogManager.GetLogger(typeof(UpdateHelper));
|
private static log4net.ILog LOG = log4net.LogManager.GetLogger(typeof(UpdateHelper));
|
||||||
private static CoreConfiguration conf = IniConfig.GetIniSection<CoreConfiguration>();
|
private static CoreConfiguration conf = IniConfig.GetIniSection<CoreConfiguration>();
|
||||||
private static Dictionary<string, string> mirrors = new Dictionary<string, string>();
|
|
||||||
private static object lockObject = new object();
|
private static object lockObject = new object();
|
||||||
private static SourceforgeFile latestGreenshot;
|
private static SourceforgeFile latestGreenshot;
|
||||||
private static SourceforgeFile currentGreenshot;
|
private static SourceforgeFile currentGreenshot;
|
||||||
//private static List<RssFile> languageFiles;
|
private const string DOWNLOAD_LINK = "http://getgreenshot.org/downloads/";
|
||||||
|
|
||||||
static UpdateHelper() {
|
|
||||||
// See: http://sourceforge.net/apps/trac/sourceforge/wiki/Mirrors
|
|
||||||
mirrors.Add("aarnet", "Brisbane, Australia");
|
|
||||||
mirrors.Add("cdnetworks-kr-1", "Seoul, Korea, Republic of");
|
|
||||||
mirrors.Add("cdnetworks-kr-2", "Seoul, Korea, Republic of");
|
|
||||||
mirrors.Add("cdnetworks-us-1", "San Jose, CA");
|
|
||||||
mirrors.Add("cdnetworks-us-2", "San Jose, CA");
|
|
||||||
mirrors.Add("citylan", "Moscow, Russian Federation");
|
|
||||||
}
|
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Is an update check needed?
|
/// Is an update check needed?
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
@ -110,7 +99,10 @@ namespace Greenshot.Experimental {
|
||||||
private static void HandleBalloonTipClick(object sender, EventArgs e) {
|
private static void HandleBalloonTipClick(object sender, EventArgs e) {
|
||||||
try {
|
try {
|
||||||
if (latestGreenshot != null) {
|
if (latestGreenshot != null) {
|
||||||
Process.Start(latestGreenshot.Link);
|
// "Direct" download link
|
||||||
|
// Process.Start(latestGreenshot.Link);
|
||||||
|
// Go to getgreenshot.org
|
||||||
|
Process.Start(DOWNLOAD_LINK);
|
||||||
}
|
}
|
||||||
} catch (Exception) {
|
} catch (Exception) {
|
||||||
ILanguage lang = Language.GetInstance();
|
ILanguage lang = Language.GetInstance();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue