Bruce Wayne 2 anni fa
parent
commit
3d38c81f59

+ 3 - 3
NatTypeTester.ViewModels/MainWindowViewModel.cs

@@ -21,10 +21,10 @@ public class MainWindowViewModel : ViewModelBase, IScreen
 
 	private readonly IEnumerable<string> _defaultServers = new HashSet<string>
 	{
-		@"stun.syncthing.net",
 		@"stunserver.stunprotocol.org",
-		@"stun.miwifi.com",
-		@"stun.qq.com"
+		@"stun.syncthing.net",
+		@"stun.qq.com",
+		@"stun.miwifi.com"
 	};
 
 	private SourceList<string> List { get; } = new();

+ 4 - 6
NatTypeTester/Utils/Extensions.cs

@@ -6,12 +6,10 @@ public static class Extensions
 {
 	public static async Task HandleExceptionWithContentDialogAsync(this Exception ex)
 	{
-		using DisposableContentDialog dialog = new()
-		{
-			Title = nameof(NatTypeTester),
-			Content = ex.Message,
-			PrimaryButtonText = @"OK"
-		};
+		using DisposableContentDialog dialog = new();
+		dialog.Title = nameof(NatTypeTester);
+		dialog.Content = ex.Message;
+		dialog.PrimaryButtonText = @"OK";
 		await dialog.ShowAsync();
 	}
 }