We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3e55789 commit 4b9faa5Copy full SHA for 4b9faa5
CommunityBugFixCollection/AnyProtocolHyperlinks.cs
@@ -24,11 +24,14 @@ private static bool HyperlinkOpenDialogOpenPrefix(HyperlinkOpenDialog __instance
24
if (!Enabled)
25
return true;
26
27
- if (__instance.World != Userspace.UserspaceWorld || __instance.URL.Value is null)
+ if (__instance.World != Userspace.UserspaceWorld)
28
return false;
29
30
- Logger.Debug(() => $"Opening Hyperlink: {__instance.URL.Value}");
31
- __instance.RunInBackground(() => Process.Start(__instance.URL.Value.ToString()));
+ if (__instance.URL.Value is not null)
+ {
32
+ Logger.Debug(() => $"Opening Hyperlink: {__instance.URL.Value}");
33
+ __instance.RunInBackground(() => Process.Start(__instance.URL.Value.ToString()));
34
+ }
35
36
__instance.Slot.Destroy();
37
0 commit comments