summaryrefslogtreecommitdiffstats
path: root/win
diff options
context:
space:
mode:
Diffstat (limited to 'win')
-rw-r--r--win/CS/HandBrakeWPF/Properties/Resources.Designer.cs18
-rw-r--r--win/CS/HandBrakeWPF/Properties/Resources.resx6
-rw-r--r--win/CS/HandBrakeWPF/ViewModels/MainViewModel.cs9
3 files changed, 32 insertions, 1 deletions
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
@@ -672,6 +672,24 @@ namespace HandBrakeWPF.Properties {
}
/// <summary>
+ /// Looks up a localized string similar to Your system prevented HandBrake from launching a web browser..
+ /// </summary>
+ public static string Main_UnableToLoadHelpMessage {
+ get {
+ return ResourceManager.GetString("Main_UnableToLoadHelpMessage", resourceCulture);
+ }
+ }
+
+ /// <summary>
+ /// Looks up a localized string similar to You can still access the help pages by visiting the website directly at: https://handbrake.fr.
+ /// </summary>
+ public static string Main_UnableToLoadHelpSolution {
+ get {
+ return ResourceManager.GetString("Main_UnableToLoadHelpSolution", resourceCulture);
+ }
+ }
+
+ /// <summary>
/// Looks up a localized string similar to {0} Encodes Pending.
/// </summary>
public static string Main_XEncodesPending {
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!</value>
<data name="Main_MatchingFileOverwriteWarning" xml:space="preserve">
<value>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.</value>
</data>
+ <data name="Main_UnableToLoadHelpMessage" xml:space="preserve">
+ <value>Your system prevented HandBrake from launching a web browser.</value>
+ </data>
+ <data name="Main_UnableToLoadHelpSolution" xml:space="preserve">
+ <value>You can still access the help pages by visiting the website directly at: https://handbrake.fr</value>
+ </data>
</root> \ 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
/// </summary>
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);
+ }
}
/// <summary>