upload
This commit is contained in:
commit
1c7a8cf25f
579 files changed
+83196
No files matched your search
@@ -0,0 +1,33 @@
|
||||
using System;
|
||||
using System.Diagnostics;
|
||||
|
||||
namespace VibranceHud;
|
||||
|
||||
internal static class Links
|
||||
{
|
||||
internal static bool TryOpen(string? url)
|
||||
{
|
||||
if (string.IsNullOrWhiteSpace(url))
|
||||
{
|
||||
return false;
|
||||
}
|
||||
try
|
||||
{
|
||||
Process.Start(new ProcessStartInfo(url)
|
||||
{
|
||||
UseShellExecute = true
|
||||
});
|
||||
return true;
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
CrashLog.Write(ex);
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
internal static void Open(string url)
|
||||
{
|
||||
TryOpen(url);
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user