mirror of
https://github.com/LBPUnion/UnionPatcher.git
synced 2025-04-23 21:15:18 +00:00
Update UnionPatcher.Gui/Forms/FilePatchForm.cs
Co-authored-by: Josh <josh@slendy.pw>
This commit is contained in:
parent
45f556a2fa
commit
9acde41b82
1 changed files with 1 additions and 8 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue