mirror of
https://github.com/LBPUnion/UnionPatcher.git
synced 2025-09-25 10:18:32 +00:00
Review fix
We don't need that Uri
This commit is contained in:
parent
eba5a9d189
commit
36dc7dc37e
1 changed files with 1 additions and 2 deletions
|
@ -10,7 +10,6 @@ namespace LBPUnion.UnionPatcher.Gui {
|
||||||
private readonly FilePicker filePicker;
|
private readonly FilePicker filePicker;
|
||||||
private readonly TextBox serverUrl;
|
private readonly TextBox serverUrl;
|
||||||
private readonly FilePicker outputFileName;
|
private readonly FilePicker outputFileName;
|
||||||
private Uri uriResult;
|
|
||||||
public Dialog CreateOkDialog(string title, string errorMessage) {
|
public Dialog CreateOkDialog(string title, string errorMessage) {
|
||||||
DynamicLayout layout = new();
|
DynamicLayout layout = new();
|
||||||
Button button;
|
Button button;
|
||||||
|
@ -92,7 +91,7 @@ namespace LBPUnion.UnionPatcher.Gui {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!Uri.TryCreate(this.serverUrl.Text, UriKind.Absolute, out uriResult))
|
if (!Uri.TryCreate(this.serverUrl.Text, UriKind.Absolute, out _))
|
||||||
{
|
{
|
||||||
this.CreateOkDialog("Form Error", "Server URL is invalid! Please enter a valid URL.").ShowModal();
|
this.CreateOkDialog("Form Error", "Server URL is invalid! Please enter a valid URL.").ShowModal();
|
||||||
return;
|
return;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue