Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update XNALinkButton to support alternative URL on *nix #482

Merged
merged 2 commits into from
Aug 23, 2023

Conversation

Belonit
Copy link
Member

@Belonit Belonit commented Aug 23, 2023

No description provided.

@Belonit Belonit force-pushed the feature-XNAExecuteButton branch from 9b370d3 to ebe3d64 Compare August 23, 2023 15:21
@github-actions
Copy link

github-actions bot commented Aug 23, 2023

Nightly build for this pull request:

@Belonit Belonit force-pushed the feature-XNAExecuteButton branch from ebe3d64 to 898c752 Compare August 23, 2023 18:52
@Belonit Belonit changed the title Add XNAExecuteButton Update XNALinkButton to support alternative URL on *nix Aug 23, 2023
@Belonit Belonit force-pushed the feature-XNAExecuteButton branch from 898c752 to fc35b66 Compare August 23, 2023 18:57
Comment on lines 37 to 44
if (UnixURL.Length != 0 && osVersion == OSVersion.UNIX)
{
ProcessLauncher.StartShellProcess(UnixURL);
}
else if (URL.Length != 0)
{
ProcessLauncher.StartShellProcess(URL);
}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
if (UnixURL.Length != 0 && osVersion == OSVersion.UNIX)
{
ProcessLauncher.StartShellProcess(UnixURL);
}
else if (URL.Length != 0)
{
ProcessLauncher.StartShellProcess(URL);
}
if (UnixURL.Length != 0 && osVersion == OSVersion.UNIX)
ProcessLauncher.StartShellProcess(UnixURL);
else if (URL.Length != 0)
ProcessLauncher.StartShellProcess(URL);

base.ParseControlINIAttribute(iniFile, key, value);
}

public override void OnLeftClick()
{
ProcessLauncher.StartShellProcess(URL);
OSVersion osVersion = ClientConfiguration.Instance.GetOperatingSystemVersion();
string url = URL;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
string url = URL;

Unused?

Copy link
Member

@Metadorius Metadorius left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

image

@Metadorius Metadorius merged commit 0083225 into develop Aug 23, 2023
@Belonit Belonit deleted the feature-XNAExecuteButton branch August 23, 2023 19:21
SadPencil pushed a commit to SadPencil/xna-cncnet-client that referenced this pull request Oct 4, 2024
* Update XNALinkButton to support alternative URL on *nix

* Make Kerbiter happier
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants