Prepare ThreadPilot 1.7.0 gaming and signing release (#51)
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
namespace ThreadPilot.ViewModels
|
||||
{
|
||||
using System;
|
||||
using System.Diagnostics;
|
||||
using System.Threading;
|
||||
using System.Threading.Tasks;
|
||||
using CommunityToolkit.Mvvm.ComponentModel;
|
||||
@@ -104,6 +105,18 @@ namespace ThreadPilot.ViewModels
|
||||
this.HasError = false;
|
||||
}
|
||||
|
||||
protected void OpenExternalLink(string url)
|
||||
{
|
||||
try
|
||||
{
|
||||
Process.Start(new ProcessStartInfo(url) { UseShellExecute = true });
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
this.SetError("Unable to open the link.", ex);
|
||||
}
|
||||
}
|
||||
|
||||
protected async Task ExecuteAsync(Func<Task> operation, string? statusMessage = null, string? successMessage = null)
|
||||
{
|
||||
try
|
||||
|
||||
Reference in New Issue
Block a user