diff --git a/UnionPatcher.Gui/Forms/FilePatchForm.cs b/UnionPatcher.Gui/Forms/FilePatchForm.cs index db1bb4f..a7499d8 100644 --- a/UnionPatcher.Gui/Forms/FilePatchForm.cs +++ b/UnionPatcher.Gui/Forms/FilePatchForm.cs @@ -132,14 +132,7 @@ public class FilePatchForm : Form { Gui.CreateOkDialog("Error occurred while patching", "An error occured while patching:\n" + e); 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); - } + this.serverUrl.Text = this.serverUrl.Text.TrimEnd('/'); Gui.CreateOkDialog("Success!", "The Server URL has been patched to " + formattedUrl); }