Skip to content

Commit

Permalink
Fix client crashing when clicking XNALinkButton with no UnixURL defined
Browse files Browse the repository at this point in the history
  • Loading branch information
Starkku committed Sep 8, 2023
1 parent 0083225 commit 98ebc28
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ClientGUI/XNALinkButton.cs
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,9 @@ public override void OnLeftClick()
{
OSVersion osVersion = ClientConfiguration.Instance.GetOperatingSystemVersion();

if (UnixURL.Length != 0 && osVersion == OSVersion.UNIX)
if (osVersion == OSVersion.UNIX && !string.IsNullOrEmpty(UnixURL))
ProcessLauncher.StartShellProcess(UnixURL);
else if (URL.Length != 0)
else if (!string.IsNullOrEmpty(URL))
ProcessLauncher.StartShellProcess(URL);

base.OnLeftClick();
Expand Down

0 comments on commit 98ebc28

Please sign in to comment.