mirror of
https://github.com/LBPUnion/UnionPatcher.git
synced 2025-08-04 15:18:49 +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);
|
Gui.CreateOkDialog("Error occurred while patching", "An error occured while patching:\n" + e);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
this.serverUrl.Text = this.serverUrl.Text.TrimEnd('/');
|
||||||
// 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 has been patched to " + formattedUrl);
|
Gui.CreateOkDialog("Success!", "The Server URL has been patched to " + formattedUrl);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue