From aaa93b1bcc5d922604ff2ec444f24ae010e3822d Mon Sep 17 00:00:00 2001 From: Faryan Rezagholi Date: Sun, 23 Dec 2018 00:56:09 +0100 Subject: [PATCH] external links to open in browser instead of mremote itself --- mRemoteV1/App/Info/GeneralAppInfo.cs | 6 ++--- mRemoteV1/UI/Menu/HelpMenu.cs | 37 +++++++--------------------- 2 files changed, 12 insertions(+), 31 deletions(-) diff --git a/mRemoteV1/App/Info/GeneralAppInfo.cs b/mRemoteV1/App/Info/GeneralAppInfo.cs index 727a33463..179773898 100644 --- a/mRemoteV1/App/Info/GeneralAppInfo.cs +++ b/mRemoteV1/App/Info/GeneralAppInfo.cs @@ -11,10 +11,10 @@ namespace mRemoteNG.App.Info { public static class GeneralAppInfo { - public const string UrlHome = "http://www.mremoteng.org/"; - public const string UrlDonate = "http://donate.mremoteng.org/"; + public const string UrlHome = "https://www.mremoteng.org/"; + public const string UrlDonate = "https://mremoteng.org/contribute/"; public const string UrlForum = "https://www.reddit.com/r/mRemoteNG/"; - public const string UrlBugs = "http://bugs.mremoteng.org/"; + public const string UrlBugs = "https://bugs.mremoteng.org/"; public static string ApplicationVersion = Application.ProductVersion; public static readonly string ProductName = Application.ProductName; public static readonly string Copyright = ((AssemblyCopyrightAttribute)Attribute.GetCustomAttribute(Assembly.GetExecutingAssembly(), typeof(AssemblyCopyrightAttribute), false)).Copyright; diff --git a/mRemoteV1/UI/Menu/HelpMenu.cs b/mRemoteV1/UI/Menu/HelpMenu.cs index c343c08c7..e79257716 100644 --- a/mRemoteV1/UI/Menu/HelpMenu.cs +++ b/mRemoteV1/UI/Menu/HelpMenu.cs @@ -1,4 +1,5 @@ using System; +using System.Diagnostics; using System.Windows.Forms; using mRemoteNG.App; using mRemoteNG.App.Info; @@ -142,39 +143,19 @@ namespace mRemoteNG.UI.Menu } #region Info - private void mMenToolsUpdate_Click(object sender, EventArgs e) - { - Windows.Show(WindowType.Update); - } - private void mMenInfoHelp_Click(object sender, EventArgs e) - { - Windows.Show(WindowType.Help); - } + private void mMenToolsUpdate_Click(object sender, EventArgs e) => Windows.Show(WindowType.Update); - private void mMenInfoForum_Click(object sender, EventArgs e) - { - WebHelper.GoToUrl(GeneralAppInfo.UrlForum); - } + private void mMenInfoHelp_Click(object sender, EventArgs e) => Windows.Show(WindowType.Help); - private void mMenInfoBugReport_Click(object sender, EventArgs e) - { - WebHelper.GoToUrl(GeneralAppInfo.UrlBugs); - } + private void mMenInfoForum_Click(object sender, EventArgs e) => Process.Start(GeneralAppInfo.UrlForum); - private void mMenInfoWebsite_Click(object sender, EventArgs e) - { - WebHelper.GoToUrl(GeneralAppInfo.UrlHome); - } + private void mMenInfoBugReport_Click(object sender, EventArgs e) => Process.Start(GeneralAppInfo.UrlBugs); - private void mMenInfoDonate_Click(object sender, EventArgs e) - { - WebHelper.GoToUrl(GeneralAppInfo.UrlDonate); - } + private void mMenInfoWebsite_Click(object sender, EventArgs e) => Process.Start(GeneralAppInfo.UrlHome); - private void mMenInfoAbout_Click(object sender, EventArgs e) - { - Windows.Show(WindowType.About); - } + private void mMenInfoDonate_Click(object sender, EventArgs e) => Process.Start(GeneralAppInfo.UrlDonate); + + private void mMenInfoAbout_Click(object sender, EventArgs e) => Windows.Show(WindowType.About); #endregion } } \ No newline at end of file