From: sr55 Date: Sat, 8 Nov 2014 16:16:59 +0000 (+0000) Subject: WinGui: Improve Error message for the help menu item. X-Git-Tag: 0.10.0~22 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=685d6946a503f1db65a0ffdef7c613939e1cd913;p=handbrake WinGui: Improve Error message for the help menu item. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@6509 b64f7644-9d1e-0410-96f1-a4d463321fa5 --- diff --git a/win/CS/HandBrakeWPF/Properties/Resources.Designer.cs b/win/CS/HandBrakeWPF/Properties/Resources.Designer.cs index 7f787b97f..3759f9eae 100644 --- a/win/CS/HandBrakeWPF/Properties/Resources.Designer.cs +++ b/win/CS/HandBrakeWPF/Properties/Resources.Designer.cs @@ -671,6 +671,24 @@ namespace HandBrakeWPF.Properties { } } + /// + /// Looks up a localized string similar to Your system prevented HandBrake from launching a web browser.. + /// + public static string Main_UnableToLoadHelpMessage { + get { + return ResourceManager.GetString("Main_UnableToLoadHelpMessage", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to You can still access the help pages by visiting the website directly at: https://handbrake.fr. + /// + public static string Main_UnableToLoadHelpSolution { + get { + return ResourceManager.GetString("Main_UnableToLoadHelpSolution", resourceCulture); + } + } + /// /// Looks up a localized string similar to {0} Encodes Pending. /// diff --git a/win/CS/HandBrakeWPF/Properties/Resources.resx b/win/CS/HandBrakeWPF/Properties/Resources.resx index 9a406c92c..8e4c82d29 100644 --- a/win/CS/HandBrakeWPF/Properties/Resources.resx +++ b/win/CS/HandBrakeWPF/Properties/Resources.resx @@ -530,4 +530,10 @@ Not both at the same time! You cannot encode to a file with the same path and name as the source file. Please update the destination filename so that it does not match the source file. + + Your system prevented HandBrake from launching a web browser. + + + You can still access the help pages by visiting the website directly at: https://handbrake.fr + \ No newline at end of file diff --git a/win/CS/HandBrakeWPF/ViewModels/MainViewModel.cs b/win/CS/HandBrakeWPF/ViewModels/MainViewModel.cs index 81558c78d..cf57289d2 100644 --- a/win/CS/HandBrakeWPF/ViewModels/MainViewModel.cs +++ b/win/CS/HandBrakeWPF/ViewModels/MainViewModel.cs @@ -1172,7 +1172,14 @@ namespace HandBrakeWPF.ViewModels /// public void LaunchHelp() { - Process.Start("https://trac.handbrake.fr/wiki/HandBrakeGuide"); + try + { + Process.Start("https://trac.handbrake.fr/wiki/HandBrakeGuide"); + } + catch (Exception exc) + { + this.errorService.ShowError(Resources.Main_UnableToLoadHelpMessage, Resources.Main_UnableToLoadHelpSolution, exc); + } } ///