|
@@ -1,6 +1,7 @@
|
|
|
using PixiEditor.Helpers;
|
|
|
using PixiEditor.Models.Commands.Attributes;
|
|
|
using PixiEditor.Models.Commands.Attributes.Commands;
|
|
|
+using PixiEditor.Models.Dialogs;
|
|
|
using PixiEditor.Views.Dialogs;
|
|
|
|
|
|
namespace PixiEditor.ViewModels.SubViewModels.Main;
|
|
@@ -21,6 +22,13 @@ internal class MiscViewModel : SubViewModel<ViewModelMain>
|
|
|
[Command.Basic("PixiEditor.Links.OpenOtherLicenses", "https://pixieditor.net/docs/Third-party-licenses", "Third Party Licenses", "Open Third Party Licenses", IconPath = "Globe.png")]
|
|
|
public static void OpenHyperlink(string url)
|
|
|
{
|
|
|
- ProcessHelpers.ShellExecute(url);
|
|
|
+ try
|
|
|
+ {
|
|
|
+ ProcessHelpers.ShellExecute(url);
|
|
|
+ }
|
|
|
+ catch
|
|
|
+ {
|
|
|
+ NoticeDialog.Show(title: "Error", message: $"Couldn't open the address {url} in your default browser");
|
|
|
+ }
|
|
|
}
|
|
|
}
|