From 45f556a2fa74d74ccd09ef0cc14a2bacc2334b56 Mon Sep 17 00:00:00 2001 From: McMistrzYT <56406996+McMistrzYT@users.noreply.github.com> Date: Thu, 9 Feb 2023 18:58:37 +0100 Subject: [PATCH] Update UnionPatcher.Gui/Forms/RemotePatchForm.cs Co-authored-by: Josh --- UnionPatcher.Gui/Forms/RemotePatchForm.cs | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/UnionPatcher.Gui/Forms/RemotePatchForm.cs b/UnionPatcher.Gui/Forms/RemotePatchForm.cs index 16301d6..7354ea9 100644 --- a/UnionPatcher.Gui/Forms/RemotePatchForm.cs +++ b/UnionPatcher.Gui/Forms/RemotePatchForm.cs @@ -73,15 +73,7 @@ public class RemotePatchForm : Form return; } - // Purely for the dialog box to show the correct URL. Actual patcher has this too. - // If server URL contains a trailing slash, loop until it's gone. - string formattedUrl = this.serverUrl.Text; - while (formattedUrl.EndsWith('/')) - { - formattedUrl = formattedUrl.Remove(formattedUrl.Length - 1); - } - - Gui.CreateOkDialog("Success!", $"The Server URL for {this.lbpGameID.Text} on the PS3 at {this.ps3LocalIP.Text} has been patched to {formattedUrl}"); + Gui.CreateOkDialog("Success!", $"The Server URL for {this.lbpGameID.Text} on the PS3 at {this.ps3LocalIP.Text} has been patched to {this.serverUrl.Text}"); }; return control;