Skip to content

Commit fc7da04

Browse files
committed
optimization go to release page
1 parent 12d7a9d commit fc7da04

File tree

1 file changed

+1
-18
lines changed

1 file changed

+1
-18
lines changed

Assets/UnityWebSocket/Scripts/Editor/SettingsWindow.cs

Lines changed: 1 addition & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -93,29 +93,12 @@ private void DrawVersion()
9393
{
9494
if (GUI.Button(new Rect(440, 50, 150, 18), "Update to | " + latestVersion))
9595
{
96-
ShowUpdateDialog();
96+
Application.OpenURL(Settings.GITHUB + "/releases");
9797
}
9898
}
9999
}
100100
}
101101

102-
private void ShowUpdateDialog()
103-
{
104-
var isOK = EditorUtility.DisplayDialog("UnityWebSocket",
105-
"Update UnityWebSocket now?\n" + changeLog,
106-
"Update Now", "Cancel");
107-
108-
if (isOK)
109-
{
110-
UpdateVersion();
111-
}
112-
}
113-
114-
private void UpdateVersion()
115-
{
116-
Application.OpenURL(Settings.GITHUB + "/releases");
117-
}
118-
119102
private void DrawHelper()
120103
{
121104
GUI.Label(new Rect(330, 200, 100, 18), "GitHub:", TextStyle(10, TextAnchor.MiddleRight));

0 commit comments

Comments
 (0)