Skip to content

Commit

Permalink
optimization go to release page
Browse files Browse the repository at this point in the history
  • Loading branch information
psygames committed Aug 24, 2024
1 parent 12d7a9d commit fc7da04
Showing 1 changed file with 1 addition and 18 deletions.
19 changes: 1 addition & 18 deletions Assets/UnityWebSocket/Scripts/Editor/SettingsWindow.cs
Original file line number Diff line number Diff line change
Expand Up @@ -93,29 +93,12 @@ private void DrawVersion()
{
if (GUI.Button(new Rect(440, 50, 150, 18), "Update to | " + latestVersion))
{
ShowUpdateDialog();
Application.OpenURL(Settings.GITHUB + "/releases");
}
}
}
}

private void ShowUpdateDialog()
{
var isOK = EditorUtility.DisplayDialog("UnityWebSocket",
"Update UnityWebSocket now?\n" + changeLog,
"Update Now", "Cancel");

if (isOK)
{
UpdateVersion();
}
}

private void UpdateVersion()
{
Application.OpenURL(Settings.GITHUB + "/releases");
}

private void DrawHelper()
{
GUI.Label(new Rect(330, 200, 100, 18), "GitHub:", TextStyle(10, TextAnchor.MiddleRight));
Expand Down

0 comments on commit fc7da04

Please sign in to comment.